[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Which files do what: .bashrc and friends



"Boyd Stephen Smith Jr." <bss03@volumehost.net> writes:

> On Wednesday 19 November 2008, "Dotan Cohen" <dotancohen@gmail.com> wrote about 'Re: Which files do 
> what: .bashrc and friends':
>>1) Is a login shell run when the user logs onto KDE (even though he
>>does not see a konsole window)?
>
> Nope a login shell is when bash is executed with the -l option, or having 
> an argv[0] starting with '-'.
>
> If you want things to run when KDE starts up, you can use .kde/env 
> and .kde/Autostart.  All readable files in .kde/env are sourced by 
> the /usr/bin/startkde script, which is run by /bin/sh.  All .desktop files 
> in .kde/Autostart are "activated" (by kdeinit or somesuch, around the same 
> time your session is restored; .desktop file are like things in KMenu, they 
> might open a file, start a program, whatever).
>

Aha! I assumed since kdm was where KDE users login from, then it must
call .*profile in the process. Seems strange that you could be
logged in without having actually encountered a login shell. Google
gave me this, which helped to explain it:

http://ubuntuforums.org/archive/index.php/t-350855.html

Cheers,

Tyler


Reply to: