Sunday, November 25, 2007

Gnome Sessions

I tentatively clicked "Remember current running applications" in Gnome Session Preferences (aka gnome-session-properties) and lived to regret it. What this does is it restarts any currently running application when you login. This is useful for, e.g., your online backup daemon, but kind of annoying for, e.g., five Emacs windows, Last.fm, some random Nautilus directory window, etc.

Now, first I tried checking and unchecking "Automatically remember running applications when logging out", as the window layout makes it seem as if these two settings are related. They are not. Then, I was tempted to fix this by futzing with the "Startup Programs" or "Current Session" lists. This is Not Right.

The Right Thing is to close all your programs (or just the offending ones) and then click again on "Remember current running applications". That is to say: the only way to change the "remembered" snapshot is to take another snapshot*.

Note: Session Preferences has a Help button, but the Gnome manual page on it doesn't mention "Remember currently running programs" or "Automatically remember running applications when logging out". This is annoying.

* Presumably there is a text file tucked away somewhere that controls this (maybe ~/.gnome2/session?), but I haven't the patience to find out.

No comments: