[Pkg-utopia-maintainers] Bug#520720: Bug#520720: gnome-power-manager: Stopped working after consolekit upgrade)
Michael Biebl
biebl at debian.org
Fri Apr 24 15:43:39 UTC 2009
Sam Morris schrieb:
> On Tue, 2009-03-24 at 19:19 +0100, Michael Biebl wrote:
>> Sam Morris wrote:
>>>> what's happening (afaics) is this.
>>>>
>>>> 1.) you have libpam-ck-connector installed, which with version 0.3.0-1 is now
>>>> automatically enabled (using pam-auth-update)
>>>> 2.) When you login on the console, XDG_SESSION_COOKIE will be set by the pam module
>>>> 3.) you then start your X session via startx, the Xsession script will not run
>>>> though, as XDG_SESSION_COOKIE is already set.
>>>> 4.) Your session on the console (tty1) will then correctly be marked as inactive
>>>> (as your active session will now be at tty7)
>>> Ah, I see, that all makes sense now!
>>>
>>>> For the time being, you can either uninstall libpam-ck-connector / disable it
>>>> (run dpkg-reconfigure libpam-ck-connector) or remove the XDG_SESSION_COOKIE
>>>> check in /etc/X11/Xsession.d/90consolekit (which shouldn't do any harm for you,
>>>> as you don't use gdm/kdm)
>>>>
>>>> I'm not quite sure yet, how to address this issue.
>>> Do you know what the harmful side-effects of removing the
>>> XDG_SESSION_COOKIE check in 90consolekit are? I don't really see what
>>> the point of the check is, and it breaks startx & friends.
>> gdm/kdm talk to consolekit directly.
>> So if you login via a login manager (which also launches the xsession scripts),
>> you would get two consolekit session cookies.
>
> Ugh, I see. :(
>
> Is there any advantage in having display managers talk to consolekit
> directly? It seems like duplication of effort given that
> libpam-ck-connector exists.
It allows tighter integration, e.g. if you use fast-user-switching.
A pam module afaik doesn't allow you to track if a session has been locked.
> Alternatively, what do you think about having 90consolekit test for
> well-known environment variables rather than XDG_SESSION_COOKIE? I see
> that GDM sets GDMSESSION... if the other consolekit-using display
> managers set other variables, the script could test for the existence of
> any of them.
Hm, do you know such a list of environemnt variables.
I think GNOME uses GNOMERC.
Problem is, we have a lot of window managers / desktop environments in
Debian ;-)
> I guess it would be better for all the ConsoleKit-using display managers
> to, if they insist on not relying on libpam-ck-connector, to set a
> common environment variable that the script can test for.
>
Maybe another possibility would be, that libpam-ck-connector sets an
environment variable like XDG_SESSION_CONSOLE if you are logged in on
the console (or we parse the output of ck-list-sessions in 90consolekit,
although I have mixed feelings about that).
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20090424/c5f15efa/attachment-0001.pgp>
More information about the Pkg-utopia-maintainers
mailing list