startxfce4 from /opt/xfce/bin

Nick C chakynet at yahoo.co.uk
Mon Jan 23 21:48:55 CET 2006


On 23.01.2006 20:16, Brian J. Tarricone wrote:

> Assuming the copy in /opt/xfce actually compiled and linked correctly
> (sometimes there are problems when there is another copy in /usr), you
> should be able to do this by changing your PATH so /opt/xfce/bin is
> before /usr/bin.  Just edit startxfce4, or create a custom script that
> sets the path and then runs startxfce4, and modify the .desktop file
> accordingly.  You may also want to set XDG_DATA_DIRS and XDG_CONFIG_DIRS.

Something is wrong here with my PATH. Well, I have set the PATH in
/etc/profile like this:

chaky at ubuntu:~ $ cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then

PATH="/opt/xfce/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin"
else

PATH="/opt/xfce/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/X11R6/bin"
fi

As you can see here, /opt/xfce/bin is before /usr/bin, but still even
after a logout and login when I do:

chaky at ubuntu:~ $ which startxfce4
/usr/bin/startxfce4

It says that.

Where do I edit XDG_DATA_DIRS and XDG_CONFIG_DIRS?

My /opt/xfce/bin/startxfce4 looks like this:

chaky at ubuntu:~ $ cat /opt/xfce/bin/startxfce4


if test x"$XDG_CONFIG_HOME" = x""
then
  BASEDIR=$HOME/.config/xfce4/
else
  BASEDIR=$XDG_CONFIG_HOME/xfce4
fi

if test x"$DISPLAY" = x""
then
  echo "$0: Starting X server"
  prog=xinit
else
  echo "$0: X server already running on display $DISPLAY"
  prog=/bin/sh
fi

if [ -f $BASEDIR/xinitrc ]; then
  exec $prog $BASEDIR/xinitrc $*
elif [ -f $HOME/.xfce4/xinitrc ]; then
  mkdir -p $BASEDIR
  cp $HOME/.xfce4/xinitrc $BASEDIR/
  exec $prog $BASEDIR/xinitrc $*
else
  exec $prog /opt/xfce/etc/xdg/xfce4/xinitrc $*
fi

-- 
ChaKy @ idolNET IRC Network :: PGP:0x487B18D5 :: ICQ:96731865
http://alf.unidu.hr/~ncake/gallery/ :: Ubuntu Linux Community



More information about the Xfce4-dev mailing list