Operating System - Linux
1828671 Members
2547 Online
109984 Solutions
New Discussion

cant execute .profile from gnome-terminal

 
SOLVED
Go to solution
Steve Lewis
Honored Contributor

cant execute .profile from gnome-terminal

xterm allows you to specify -ls at the command line to execute the .profile when you open a window.
Gnome terminal appears not to take any notice of this.
I tried adding *loginShell: true to my .Xdefaults file but that doesn't work either.
Any ideas?
3 REPLIES 3
twang
Honored Contributor

Re: cant execute .profile from gnome-terminal

Steve Lewis
Honored Contributor

Re: cant execute .profile from gnome-terminal

As I said in the question, I already tried that and it doesn't work for gnome-terminal, only xterm.

Stuart Browne
Honored Contributor
Solution

Re: cant execute .profile from gnome-terminal

There should be a tick-box in the 'profile' options in Gnome-Terminal to "Runcommand as a login shell" (edit, current profile, title and command).

This execute's the .bash_profile (assuming your shell is bash) when you run a gnome-terminal session.

This is set in the %gconf.xml file under ~/.gconf/apps/gnome-terminal/profiles/Default/ in for 'login_shell' (value=true).

Hope this helps.
One long-haired git at your service...