Paths and commands

Brian J. Tarricone bjt23 at cornell.edu
Thu Feb 8 00:22:41 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

John Coppens wrote:

> 1) Which path is used by xfce for its commands? If I type 'glade' in a
> terminal, it starts, but not in the menu xfce4 - there I have to specify
> the complete path.

This is kinda tricky.  Your terminal will set the PATH environment
variable depending on whether or not it runs a login shell, which
determines which startup files (some combination of .bashrc,
.bash_profile, .profile, etc., assuming bash).  Your login manager, and
therefore X, and therefore Xfce, and therefore the run dialog, will pick
up whatever environment was available whenever the login manager was
started.  If the login manager invokes a shell before launching X or
Xfce, that further complicates things.

> 2) Also, if I put 'LC_ALL=en_US /opt/gnome/bin/glade' as the menu command,
> the LC_ALL gets ignored. In this case, glade is started without the en_US
> locale. Do I have to write a wrapper script for this?

The menu does not launch applications using the shell; prefixing
variable names to commands is a shell construct.  As Don mentioned,
using 'env' will work, or you can use something like:

bash --login -c 'LC_ALL=en_US glade'

The '--login' may or may not be necessary to set the PATH properly.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFyl9B6XyW6VEeAnsRA6abAJ97i/e5ar41C7TlKlkm2a2UuGn8uACfUQdh
a+obuHgwC3EgSf14JkKblFw=
=HdbX
-----END PGP SIGNATURE-----



More information about the Xfce mailing list