That is something that I was wondering is what actually changes your PATH when you run
startx. In my case either my bin gets stripped off, or a default PATH is used and something inserts an invalid path at the start of my PATH (there are some libfm files, but no libfm directory):
Code: Select all
efflandt@tinyproxy ~ $ echo $PATH
/usr/lib/arm-linux-gnueabihf/libfm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
efflandt@tinyproxy ~ $ ls /usr/lib/arm-linux-gnueabihf/libfm
ls: cannot access /usr/lib/arm-linux-gnueabihf/libfm: No such file or directory
efflandt@tinyproxy ~ $ ls /usr/lib/arm-linux-gnueabihf/libfm*
/usr/lib/arm-linux-gnueabihf/libfm-gtk.so.1
/usr/lib/arm-linux-gnueabihf/libfm-gtk.so.1.0.0
/usr/lib/arm-linux-gnueabihf/libfm.so.1
/usr/lib/arm-linux-gnueabihf/libfm.so.1.0.0
It is possible to open a 2nd lxterminal as a login terminal that sources your .profile (without having to actually log in again):
Code: Select all
efflandt@tinyproxy ~ $ lxterminal -l -e bash
From that lxterminal:
Code: Select all
efflandt@tinyproxy ~ $ echo $PATH
/home/efflandt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
You could fix that at least for the desktop icon by modifying this line like this in ~/Desktop/lxterminal.desktop: