Bug 340350 - Session-restore starts new instances of already running applications
Summary: Session-restore starts new instances of already running applications
Status: RESOLVED FIXED
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-26 02:00 UTC by John Lindgren
Modified: 2016-04-02 02:42 UTC (History)
3 users (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 John Lindgren 2014-10-26 02:00:40 UTC
KDE's save-and-restore-session feature gets confused by applications that are already running when KDE is started, and starts up a new instances of those applications.  Each time KDE is closed and restarted, it will start an additional instance.

Reproducible: Always

Steps to Reproduce:
1. Start with a new user account
2. Log into a plain xterm session
3. Run startkde
4. Exit KDE
5. Exit the xterm
6. Log into a plain xterm session again
7. Run startkde

Actual Results:  
KDE starts a second xterm in spite of the fact that only one was running in the previous session.  If I then log out and repeat the exercise by logging in a third time, KDE will start not only the second xterm but a third one as well.

Expected Results:  
Only one xterm was running the first time I logged into KDE, and only one xterm was running when I logged out.  When I log in again, only one xterm should be running, not two.

Arch Linux package versions:
kwin 5.1.0.1-2
plasma-desktop 5.1.0.1-2
plasma-framework 5.3.1-1
xf86-video-intel 2.99.916-3
xterm 312-1

P.S.  Your bug tracker does not handle copy-and-paste well.  Each time I copy this list of package versions from a previous report, it all gets merged into one line and I have to add the line breaks again manually.
Comment 1 Martin Klapetek 2014-10-27 08:39:36 UTC
Adding Teo, who worked on session stuff (iirc).
Comment 2 Bhushan Shah 2015-01-31 05:27:55 UTC
*** Bug 343518 has been marked as a duplicate of this bug. ***
Comment 3 Bhushan Shah 2015-01-31 05:29:11 UTC
Since ksmserver don't have Plasma 5.2 version yet, unspecified
Comment 4 John Lindgren 2016-04-02 02:42:42 UTC
Working for me in KDE 5.6.1.  Seems to be fixed.