Common gotchas upgrading from 4.0 -> 4.2

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Wed Nov 3 15:36:29 CET 2004


Jasper Huijsmans wrote:
> Hey all,
> 
> I think it would be good if we could collect a list of common problems that
> people may encounter when upgrading from 4.0 to 4.2. Some sort of Upgrading
> FAQ.
> 
> - Base dir spec. Some distribution apparently set XDG_*_DIRS. If that does not
>   include the Xfce prefix, none of the modules will find their configuration.

I worked around the problem in the installer, by processing the 
startxfce4 file with the following commands, Brian already suggested to 
put it in the upstream version. What do you think?

sed -e "/^if test x\"\$DISPLAY\".*$/{
   i\\
   export PATH=\"${PREFIX}/bin:\${PATH}\"
   i\\
   if test x\"\${LD_LIBRARY_PATH}\" != x\"\"; then
   i\\
   export LD_LIBRARY_PATH=\"${PREFIX}/lib:\${LD_LIBRARY_PATH}\"
   i\\
   else
   i\\
   export LD_LIBRARY_PATH=\"${PREFIX}/lib\"
   i\\
   fi
   i\\
   if test x\"\${PKG_CONFIG_PATH}\" != x\"\"; then
   i\\
   export PKG_CONFIG_PATH=\"${PREFIX}/lib/pkgconfig:\${PKG_CONFIG_PATH}\"
   i\\
   else
   i\\
   export PKG_CONFIG_PATH=\"${PREFIX}/lib/pkgconfig\"
   i\\
   fi
   i\\
   if test x\"\${XDG_CONFIG_DIRS}\" != \"\"; then
   i\\
   export XDG_CONFIG_DIRS=\"\${XDG_CONFIG_DIRS}:${SYSCONFDIR}/xdg\"
   i\\
   fi
   i\\
   if test x\"\${XDG_DATA_DIRS}\" != \"\"; then
   i\\
   export XDG_DATA_DIRS=\"\${XDG_DATA_DIRS}:${PREFIX}/share\"
   i\\
   fi
   }" \
   < xfce-utils/scripts/startxfce4.in \
   > tmp-startxfce4.in
mv tmp-startxfce4.in xfce-utils/scripts/startxfce4.in

> 	Jasper

Benedikt



More information about the Xfce4-dev mailing list