Re: No sourcing of ~/.profile at login
On Wed, 17 Sep 2003, Ashish Ariga wrote:
>On Wed, 2003-09-17 at 09:56, Daniel B. wrote:
>> Paul Smith wrote:
>> >
>> > .. If you're using a graphical login manager like GDM or
>> > XDM, then these methods of login never actually invoke a login shell,
>>
>> Why not? (Why shouldn't logging in via GDM execute your login-time
>> shell initialization?)
>>
>
>That's the default behaviour. See Xsession (under /etc/X11/*)
>Change the first line "#!/bin/bash" to "#!/bin/bash --login"
>
>Then all the talk about .bash_profile, .profiles, ... comes into play.
Umm...didn't get that. The first line in my /etc/X11/Xsession says
#!/bin/sh.
Here is what I can find that's bash-related under /etc/X11:
dt:/etc/X11# find . -type f | xargs grep bash
./twm/menudefs.hook: "Bash" f.exec "x-terminal-emulator -T
\"Bash\" -e /bin/bash -login &"
./twm/system.twmrc: "Bash" f.exec "x-terminal-emulator -T \"Bash\"
-e /bin/bash -login &"
./sawfish/debian-menu.jl: '("Bash" (system "exec
x-terminal-emulator -T \"Bash\" -e /bin/bash -login &"))
Best regards,
David List
Reply to: