[Bug 152805] "switch user" does not list sessions

Sebastian Sauer mail at dipe.org
Fri Jan 25 02:24:52 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=152805         




------- Additional Comments From mail dipe org  2008-01-25 02:24 -------
Uff, that problem is really a mess :-/

So, I got some steps future. I am running KDM from KDE3 and use an own kde4-account where I installed KDE4 under.

1. running "kdmctl" at the prompt of the kde4-user should provide a list of some stuff. If it says permission denied, like it did in my case, you may need to switch some permissions at "/var/run/xdmctl/dmctl-:0" or whatever directory kdmctl complains about (thanks goes to Ossi here for providing that hint at the KDE4 release-party :)
2. check what echo "$DM_CONTROL" says. In my case it was needed to "export DM_CONTROL=/var/run/xdmctl"

and now in kdebase/workspace/libs/kworkspace/dmctl.cpp in the DM::DM() ctor the

if (::connect( fd, (struct sockaddr *)&sa, sizeof(sa) ))

condition is true what results in fd = -1; beeing set what in turn means, that in the DM::localSessions() method the

if (!exec( "list alllocal\n", re ))

is true aka it fails to fetch the sessions :-/

So, question is now, why ::connect( fd, (struct sockaddr *)&sa, sizeof(sa)) fails here. I don't see any difference to http://websvn.kde.org/branches/KDE/3.5/kdebase/kdmlib/dmctl.cpp?view=markup


More information about the Panel-devel mailing list