environment variables
Brian J. Tarricone
bjt23 at cornell.edu
Wed Aug 10 08:23:17 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Myles Green wrote:
> Hi,
> I used Brian's build script to install xfce4 from svn
> into /opt/xfce4-svn (the default) but I also have xfce4-4.2.2 installed
> in /usr. When I try and run /opt/xfce4-svn/bin/startxfce4 I end up with
> xfce4-4.2.2 instead. My best guess is that I need to set some
> environment variables prior to running /opt/xfce4-svn/bin/startxfce4,
> unfortunately I have no idea what 'they' might be. Currently my
> ~/.xinitrc contains only the line "exec /opt/xfce4-svn/bin/startxfce4"
> (aside from #!/bin/bash). Could some kind soul tell me what I need to
> add to that so I actually get xfce4-svn to run?
Mmm, I shoulda added a little info at the end to explain this. I just
put up a new version[1] of the script that installs a script called
xfce4-svn-start that'll do env var setup for you and whatnot. I haven't
really tested it, so don't assume it's your fault if it doesn't work ^_~.
If you're feeling lazy, this is the script (beware line wrapping):
- ---------- cut here ----------
#!/bin/bash
xfce_prefix="/opt/xfce4-svn"
xfce_sysconfdir="/opt/xfce4-svn/etc"
export PATH="${xfce_prefix}/bin:${PATH}"
export LD_LIBRARY_PATH="${xfce_prefix}/lib:${LD_LIBRARY_PATH}"
export PKG_CONFIG_PATH="${xfce_prefix}/lib/pkgconfig:${PKG_CONFIG_PATH}"
test -z "${XDG_DATA_DIRS}" && \
XDG_DATA_DIRS="/usr/local/share:/usr/share"
export XDG_DATA_DIRS="${xfce_prefix}/share:${XDG_DATA_DIRS}"
test -z "${XDG_CONFIG_DIRS}" && XDG_CONFIG_DIRS="/etc/xdg"
export XDG_CONFIG_DIRS="${xfce_sysconfdir}/xdg:${XDG_CONFIG_DIRS}"
exec ${xfce_prefix}/bin/startxfce4
- ---------- cut here ----------
-brian
[1] http://spuriousinterrupt.org/projects/xfce4/files/xfce4svn.sh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFC+Z1V6XyW6VEeAnsRAtKpAJ9zQxngcx5BzVFe/rjhQ1fCcGLf7ACgsq8W
zzC4wc5JMOV4xpfzNHxq/mg=
=a1w7
-----END PGP SIGNATURE-----
More information about the Xfce
mailing list