gnome-session 2.4 no longer runs $HOME/.gnomerc

Joe Marcus Clarke marcus at marcuscom.com
Tue Sep 23 10:06:19 PDT 2003


On Tue, 2003-09-23 at 12:58, Joe Kelsey wrote:
> Joe Marcus Clarke wrote:
> > On Tue, 2003-09-23 at 12:42, Joe Kelsey wrote:
> >>Did something change in Gnome 2.4 to affect this?
> > 
> > 
> > Yes, a lot changed in GNOME 2.4.  The new script is ~/.xsession.
> 
> .xsession doesn't work the same way.  gdm/Xsession checks for the 
> existence of .xsession an uses that *instead of* the default "ssh-agent 
> -- gnome-session".  .gnomerc used to get executed *after* launching 
> gnome-session so that I could run ssh-add.

No it didn't.  I always used .gnomerc, and it was always executed by
GDM.  Attached is the old code to prove it.  Also, if you grep through
the gnome-session-2.2.2 code, you will see no mention of .gnomerc.

>   Now, the same ability does 
> not exist, so I have to completely recreate the overall structure by 
> first starting ssh-agent in the background in .xsession, then run 
> ssh-add, then exec gnome-session.  This completely severs the ability to 
> automatically kill ssh-agent at logout, and I hve to come up with an 
> alternative, such as leaving a remnant shell to do the clean-up.
> 
> What a horrible mess!

Also attached is my old .gnomerc which calls gnome-session at the end. 
You can certainly add your own commands to this.  Just make sure the
last command is exec gnome-session.

Joe

> 
> /Joe
> 
> 
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20030923/f497e56f/attachment.bin


More information about the freebsd-gnome mailing list