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



Hello

On Sat, 2008-05-03 at 22:21 -0700, primorec wrote:
> 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
https://bugzilla.redhat.com/show_bug.cgi?id=217783


> 
> 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
> >
> _______________________________________________
> gdm-list mailing list
> gdm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gdm-list
-- 
Ritesh Khadgaray
Ph: +919970164885
Desktop LinuX N Stuff, RHCE
Software Maintenance Engineer, Pune, Red Hat
ॐ मणि पद्मे हूँ
Eat Right, Exercise, Die Anyway.




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