After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581819 - gnome-session-save remembers last session after deactivation.
gnome-session-save remembers last session after deactivation.
Status: RESOLVED DUPLICATE of bug 301949
Product: gnome-session
Classification: Core
Component: gnome-session
2.26.x
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-08 02:23 UTC by Oskar Wallgren
Modified: 2009-08-09 02:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-session-2.26.1/capplet/gsm-properties-dialog.c rude patch! :-) (635 bytes, patch)
2009-08-08 05:44 UTC, Oskar Wallgren
none Details | Review

Description Oskar Wallgren 2009-05-08 02:23:13 UTC
Wooof!

My first post here:

I couldn't find any other bugreports about this.

After deactivating the Startup app:
"Automatically remember running application when logging out" gnome doesn't erase the last remembered session which means you'll end up getting those darn windows back again and again until you erase the files in:
~/.config/gnome-session/saved-session/

I now run Ubuntu but experienced the exact same problem under Mandriva and found it annoying enough to want to try another operation system alltogether.


------------------------

To copy the bug.

1. open gedit
2. system/preferences/startup applications/options (In Ubuntu...)
3. activate the only option
4. log out
5. log in ( hooray... it works )
6. deactivate the option again
7. log in and out again
8.  :P  -?!
9.  :-| -?!
10. ;-( -?!!

--------------------------

A quick fix would be a script that nukes the files in "saved-session/" after deactivating the function (They are recreated when you log out)

I found this extremely annoying under Mandriva because I tried the function with a lot of windows and would have them come back and haunt me even in my dreams... The horror!
I don't know what priority it deserves but I'ld rate it high actually and the fix should be simple (if it is a bug that is... I don't know anyone else who runs Linux and perhaps I'm the only one with this problem)


Oskar
Comment 1 Oskar Wallgren 2009-05-08 03:01:27 UTC
Apparently it was a known issue!

http://np237.livejournal.com/22014.html
Comment 2 Oskar Wallgren 2009-08-08 05:44:37 UTC
Created attachment 140181 [details] [review]
gnome-session-2.26.1/capplet/gsm-properties-dialog.c    rude patch!   :-)
Comment 3 Oskar Wallgren 2009-08-08 05:58:42 UTC
Ok. This patch is next to shorting two pins on the cpu, when it comes to finesse, but I only wanted to show the logic of the case as I see it... And it works.  :D

The saved-session files is deleted when the "Automatically remember running..." is unchecked. I didn't manage to figure out how to adress the saved session files properly so I provided a direct adress. ~/.config/gnome-session/saved-session/
The patch works if this adress is true on your computer.




( I think this bug is a duplicate but I'll look that up later... )
Comment 4 Oskar Wallgren 2009-08-09 02:08:33 UTC

*** This bug has been marked as a duplicate of 301949 ***