Re: [gdm-list] automatic change default working directory after graphical login



On Sat, May 3, 2008 at 7:57 PM, Ray Strode <halfline gmail com> wrote:
> Hi,
>
>
>  >  oo: yes, putting 'cd /proj/$USER' into .login works if the user logs
>  >  into the machine using CLI login and then starts the desktop with
>  >  'startx' OR if he/she logs to the machine via ssh|telnet. It does not
>  >  work for gdm (aka graphical login)
>  What distro do you use?

CentOS 5.X

After a little bit more time spent analyzing the issue and based on your reply,
I came to the following conclusion(s):

GNOME-DESKTOP:
- yes,  Xsession does read (source) .login file
- in my case it did not read it  (or better, executed it correctly)
because I've used bash syntax while
  my $SHELL was tcsh
- there is no difference between CLI login and gdm login
    In both cases  ALT F2  gnome-terminal honors .login file (terminal
starts in the directory defined  with 'cd' in the .login)
    right click on dektop --> selecting Terminal does NOT honor .login
file (terminal starts in $HOME)
     selecting Terminila from pulldown menu does NOT .login file
(terminal starts in $HOME)

XFCE4 DESKTOP:
- everything works "just fine[TM]"  using XFCE's  terminal emulator

So, the real question is:
    Which configuration file I need to modify in order to convince
GNOME desktop
     to CD to the current working directory defined in .login  after
launching gnome-terminal
     from pull down menu


Sincerely

Igor

 The Xsession file we ship in Fedora does:
>
>  exec -l $SHELL -c "$SSH_AGENT /etc/X11/xinit/Xclients"
>
>  to fire off the session.
>
>  The "exec -l $SHELL" part ensures that .login gets read during the
>  graphical login process.
>
>  It could be your distro's Xsession file doesn't do that. (Maybe we
>  need to fix this in the upstream Xsession file, too?)
>
>  --Ray
>


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