In my ~/.bashrc and ~/.profile I have some variables set to some filepaths:
In my ~/bin/ (which is added to my PATH) I have a few scripts that rely on those variables being set.
If I run those commands from the terminal, they work as expected.
However, if I try to double click on a script in Nautilus and run it, it runs as if those variables were not set.
Same thing happens if I add one of the scripts to Gnome's "Startup Applications" using the GUI utility or if I add them to the Gnome menu using the "Main Menu" GUI utility.
I would've thought that since I included these variables in my ~/.profile, which is run at login that gnome and nautilus and processes spawned by them would have access to those variables.
Both Gnome and Nautilus are run under my login user. All my scripts in ~/bin have the bash shebang at the top.
I am new to bash scripting, sorry if I am missing something obvious. I am using Debian Wheezy and Gnome3.