KDM/KDE second session for user

Greetings,

I have a KDE session runnng for user ‘wg’ on on the console.
When starting a second XDMCP KDE session from a PC (XManager) logging in with the same user ‘wg’, KDM fails.
file .xesssion-errors-192.168.1.20:0

/etc/X11/xim: line 74: syntax error near unexpected token `)'
/etc/X11/xim: line 74: `            done) | $SHELL)'
grep: /home/wg/.gnupg/gpg-agent.conf: No such file or directory
startkde: Starting up...
klauncher(20065) kdemain: Waiting for already running klauncher to exit. 
klauncher(20065) kdemain: Waiting for already running klauncher to exit. 
klauncher(20065) kdemain: Another instance of klauncher is already running! 
kdeinit4: Communication error with launcher. Exiting!
kdeinit4_wrapper: Warning: connect(/home/wg/.kde4/socket-MAGRO-XEN/kdeinit4_192.168.1.20_0) failed: : Connection refused
Could not register with D-BUS. Aborting.
startkde: Shutting down...
kdeinit4_wrapper: Warning: connect(/home/wg/.kde4/socket-MAGRO-XEN/kdeinit4_192.168.1.20_0) failed: : Connection refused
Error: Can not contact kdeinit4!
startkde: Running shutdown scripts...
startkde: Done.

What is the problem and how can I enable multiple KDE sessions for one user?

Thanks for reading and hints
Wolf

It’s not possible, since years.

The startup procedure just quits if another session already is running (as the same user).

The problem is that things like the DBUS user session have to be unique, and there could be conflicts/race conditions in handling of temporary files or even config files otherwise.

You may want to look at activities they are like having multiple sessions

Not really, no.
Separate X sessions run on separate X displays. You can switch between them with e.g. Ctrl+Alt+F7 and Ctrl+Alt+F8.
You cannot move windows from one to the other or things like that, they are completely separate from Xorg’s view.

But TBH, I don’t really see a use case for starting two separate X sessions for the same user (and running KDE in both) either.
If you want to have more space for your windows (or have the windows separated somehow), you should be fine with virtual desktops or activities.

Ok; I’ve done it until now with KDE-3.5 with openSUSE-11.2/3.

Is this a new kde-4 feature?
Now upgrading to openSUSE-13/42.1

Thanks,
Wolf

There have been many changes since KDE 3.5, in particular the desktop has been basically rewritten from scratch.
And KDE3 didn’t use DBUS either, it had its own (similar) thing called DCOP.

Is this a new kde-4 feature?

Not exactly “new”, that’s how it is since years, with KDE4 at least.
I have no idea how other desktops (like GNOME) behave, simple ones should definitely support it. (i.e. it works fine to have several IceWM sessions for the same user)

Now upgrading to openSUSE-13/42.1

You rather mean Leap 42.1?
Plasma5 won’t let you do this either.

If you want to use a KDE desktop in two simultaneous X sessions for the same user, the only option is probably to install KDE3.
It’s not included in Leap any more, but it’s available from the additional KDE:KDE3 repo for Leap as well.

KDE3 can even be installed alongside KDE4/Plasma5, so you could have one (or several) KDE3 sessions and a KDE4/5 session open at the same time.