Bug 371977

Summary: parallel kde plasma5 sessions do not work
Product: [Plasma] plasmashell Reporter: hiller
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bshah, plasma-bugs-null
Priority: NOR Keywords: triaged
Version First Reported In: 5.5.4   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description hiller 2016-11-02 14:51:58 UTC
I have an open kde plasma5 session on the desktop. So far so good. Now i want to open a second parallel kde plasma5 session, e.g. with nomachine's nx. That fails with the message:

Loading stage  "initial" 64
startkde: Starting up...
kdeinit5: preparing to launch 'libkdeinit5_klauncher'
kdeinit5: Launched KLauncher, pid = 9707, result = 0
Waiting for already running klauncher to exit.
Waiting for already running klauncher to exit.
Another instance of klauncher is already running!
kdeinit5: Communication error with launcher. Exiting!
kdeinit5_wrapper: Warning: connect(/run/user/631/kdeinit5__0) failed: : Connection refused
Qt: Session management error: networkIdsList argument is NULL
Configuring Lock Action
XSync seems available and ready
XSync Inited
Supported, init completed
Created alarm 23068673
ksmserver: "/run/user/631/KSMserver"
ksmserver: KSMServer: SetAProc_loc: conn  0 , prot= local , file= @/tmp/.ICE-unix/9709
ksmserver: KSMServer: SetAProc_loc: conn  1 , prot= unix , file= /tmp/.ICE-unix/9709
ksmserver: KSMServer::restoreSession  "saved at previous logout"
startkde: Shutting down...
kdeinit5_wrapper: Warning: connect(/run/user/631/kdeinit5__0) failed: : Connection refused
Error: Can not contact kdeinit5!
startkde: Done.
Qt: Session management error: Could not open network socket
The X11 connection broke (error 1). Did the X11 server die?


The rason is that the first kde plasma session has opened the socket /run/user/631/kdeinit5__0 (631 is my uid), and the second kde plasma from nx wants to open the same, which is already blocked by the first session. Closing the first kde plasma makes the nx work.
A workaround would be using another window manager for the second session.

Is there a trick withing kde plasma5 to make both sessions work in parallel? Or is there a bug?

Plasma 4 this never was a problem, because in /run/user/631/ksocket-ulrich/ there were in such cases two sockets opened, e.g.: kdeinit4__0 and kdeinit4_nx.mpia-hd.mpg.de_516

With kind regards, ulrich
Comment 1 David Edmundson 2016-11-02 22:37:19 UTC
As the same user?
Comment 2 hiller 2016-11-03 09:22:24 UTC
Yes, as the same user. It tries to write a second kdeinit5__0 into /run/user/631
Comment 3 Andrew Crouthamel 2018-09-26 22:12:55 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-10-27 02:49:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!