On Sat, Apr 25, 2015 at 3:03 AM, Maximilian Kaul <archlinux@xxxxxxxxxx> wrote: > So I checked in a terminal: > > $ which exiftool > /usr/bin/vendor_perl/exiftool > > $ echo $PATH > .../usr/bin/vendor_perl... > > BUT > if I put the following code in a file > > #!/bin/sh > env > /tmp/env > > and execute it via GNOME (double click the file and select 'run') and > then check the PATH variable in /tmp/env it does _not_ include the perl > directory. > > What is the correct way to set this variable? I always thought it is set > in /etc/profile.d/ but it is already there. Take a look at [1]. Basically the profile configuration files are for shell environments, but a DE is not a shell and is not run from one. According to that page, you can add the graphical environment in $HOME/.xinitrc. HTH [1]: https://wiki.archlinux.org/index.php/Environment_variables