Session does not persist after reboot

Bug #118495 reported by Nano Taboada
4
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Basically sessions do not get persisted hence any changes are lost after reboot.
Example:
I've added Beryl Manager, Gaim and Firestarter to:

System -> Preferences -> Sessions [Startup Programs]

so I don't have to launch them manually every time I log into the system.

In the [Session Options] Tab, I've pressed the button labeled "Save the current session", and also the check box that reads "Automatically save changes to session" is already selected.

Now if I reboot the system or log off, I've lost those changes.

Revision history for this message
Nano Taboada (nanotaboada) wrote :

I'm using Ubuntu 7.04 Feisty Fawn, the one that I've received from shipit.ubuntu.com

Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

I think saving sessions and autostart are not directly connected though they are close in the settings form.

autostart items are saved to ~/.config/autostart/ as far as I know. Pleas check, if that directory exists and there maybe are files corresponding to your needs and attach them if there.

Revision history for this message
Nano Taboada (nanotaboada) wrote :

First all thanks much for your reply. Yes indeed both settings are in the Sessions menu, but on different tabs, that's why it's perhaps a bit confusing. Either way I've listed the directory you suggested:

$ ls ~/.config/autostart
beagled.desktop

Apparently there's only that file.

Now I will try again adding (first screenshot) two new startup programs, Gaim and Firestarter (second screenshot).
Ok, so I've closed the dialog then listed the autostart folder again:

$ ls ~/.config/autostart
beagled.desktop

Again just that file. Nothing changed.
Finally if I open the Sessions menu again, the entries I've just created aren't there.

Thanks in advance!

first screenshot:
http://aycu17.webshots.com/image/15816/2005987131539505466_rs.jpg

second screenshot:
http://aycu04.webshots.com/image/15603/2005941908143425814_rs.jpg

Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

Thanks for your reply. Please provide us with the following information:

1. Make sure you have write access to your ~/.config/autostart/, e.g. by
$ touch ~/.config/autostart/test
$ rm ~/.config/autostart/test
(Check, if you get any errors)

2. Do you configuration by launching the session property manager by console/command line:
$ gnome-session-properties

Probably you will get feedback on the command line - please, paste or attach this to this thread.

Revision history for this message
Nano Taboada (nanotaboada) wrote :

Thanks for your help!

It's indeed about the permissions/ownership:

$ touch ~/.config/autostart/test
touch: cannot touch `/home/nano/.config/autostart/test': Permission denied

$ ls -lah ~/.config/autostart
total 12K
drwxr-xr-x 2 root root 4.0K 2007-05-29 18:21 .
drwx------ 6 nano nano 4.0K 2007-05-31 05:49 ..
-rwxr-xr-x 1 root root 108 2007-05-29 18:21 beagled.desktop

Quite strange though, mmm, maybe that Beagle installation somewhat messed the permissions there.
I think I've installed it using Automatix, so I'll report with them too, and of course now that you helped me identifying the problem I'll chmod/chown that directory and try again using the interface.

So again thanks much mein freund +1 karma for you!

Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

Pleased to help you. I reject this bug as it does not seem to belong directly to gnome-session, though you could think about filing a bug that gnome-session does not complain about permission problems. Greetings!

Changed in gnome-session:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.