PATH ~/bin under gnome
Adam Funk
a24061 at yahoo.com
Thu Nov 23 11:12:25 UTC 2006
On 2006-11-22, Marius Gedminas <marius at pov.lt> wrote:
>> "All programs, or symbolic links to programs, in ~/Desktop/Autostart/ will
>> be run by startxfce4 on startup."
>
> Ah, but will shell scripts be *run*, or will they be *sourced*? If
> they're run like ordinary programs, any environment variable
> modifications will not affect the parent process, so you get no effect.
What happens if the system *runs* a bash script which *sources*
another bash script? Would
export FOO=/path/to/bar
have the desired effect?
> There's a nearly universal solution: use ~/.xsession, place your environment
> variable modification at the top and exec the appropriate session script
> at the end (e.g. exec /usr/bin/gnome-session). Then choose "custom" in
> your login manager.
...
> The downside to this approach is that you cannot choose different
> sessions in your display manager's menu and expect your environment
> variable settings to appear in each of them.
Hmm. I like having the flexibility of being able to use a different
DM occasionally. I recently saw a cryptic reference to ~/.xprofile
somewhere --- is that relevant?
More information about the ubuntu-users
mailing list