Bug 365237 - session not saved/restored upon logout/login
Summary: session not saved/restored upon logout/login
Status: RESOLVED REMIND
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-08 14:32 UTC by Simon Oosthoek
Modified: 2017-04-13 10:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Oosthoek 2016-07-08 14:32:44 UTC
Using ubuntu 16.04 + Neon packages (repo)

I usually have at least 3 applications open: Konsole, Thunderbird and Firefox. Whenever I login I want these to be there as well. When I log off, the applications are still open and when I login I want the applications to be started as I left them.

Before I installed 16.04+Neon, I was using fedora 23 (+plasma desktop), as far as I can remember, this setup did what I wanted.

In another bug https://bugs.kde.org/show_bug.cgi?id=87499 I found a similar problem, which I can confirm, but it's not the same as this.



Reproducible: Always

Steps to Reproduce:
1. Login
2. Start konsole, firefox, thunderbird
3. logout
4. login
5. no restored session :-(

Actual Results:  
The desktop opens with no open windows

Expected Results:  
I expect konsole firefox and thunderbird to be started when I log in, after I logged out with these specific applications open.
Comment 1 Wolfgang Bauer 2016-09-28 11:18:53 UTC
(In reply to Simon Oosthoek from comment #0)
> I expect konsole firefox and thunderbird to be started when I log in, after
> I logged out with these specific applications open.

Works fine here, so it's likely not a general bug in ksmserver.

Firefox and Thunderbird are GTK applications though.

Support for the legacy session management protocol (which has been superseeded/deprecated in 1993!) had been removed from ksmserver in 5.6, but as it turned out, GTK only supports this so this broke restoring GTK applications completely (it's the same in GNOME btw).
See bug#362671 .

Judging from the date when you filed this report, you did use 5.6.x., so this would explain it for Firefox and Thunderbird.
Should be fixed since Plasma/ksmserver 5.7, as support for the legacy protocol has been restored.

Konsole on the other hand is a KF5 application, and should be restored fine, since KDE Frameworks 5.20.0 and Qt 5.6.0 at least (which you likely had I suppose as you are using Neon).
There was/is a bug in Konsole though that causes it to crash on startup/session restore if the stored current directory doesn't exist.
See bug#365413.

Could this be the problem?
Comment 2 Lubos Lunak 2017-04-13 10:21:10 UTC
No response, presumably fixed, closing.
Comment 3 Simon Oosthoek 2017-04-13 10:28:15 UTC
Sorry, I must have missed the reply in September...

It could very well be the konsole bug you referred to, the other problems with firefox and thunderbird might have been resolved, at least on ubuntu 16.10...

I guess this bug can remain closed, I may re-open or re-file when I have time for some more testing...

Cheers

Simon