[arch-general] Polkit and systemd
Hello, If I'm not wrong, systemd makes consolekit superfluous. This is what I thought it took for polkit to work with systemd: * compile polkit with --enable-systemd * enable the systemd polkit service * that's it? But that's not it. Although polkit seems to work in console, it does not work in X. This is not terribly surprising, because I haven't done anything equivalent to launching my WM under "ck-launch-session", as I used to do with consolekit. Is there an equivalent way of launching the window manager under systemd-acting-as-consolekit? I should explain that I'm using no display manager, and I'd like to keep it this way, if at all possible. Cheers, Manolo --
On Wed, Aug 15, 2012 at 1:13 AM, Manolo Martínez <manolo@austrohungaro.com> wrote:
But that's not it. Although polkit seems to work in console, it does not work in X. This is not terribly surprising, because I haven't done anything equivalent to launching my WM under "ck-launch-session", as I used to do with consolekit. Is there an equivalent way of launching the window manager under systemd-acting-as-consolekit?
I should explain that I'm using no display manager, and I'd like to keep it this way, if at all possible.
If you don't use a display manager, it means you won't have a registered pam session for your graphical login, which means logind won't give the correct info to polkit (it will think that there is no active session). A workaround for this is to start your WM on the same VT as your consolelogin, and hence "steal" that pam session. I believe the magic incantation is: # startx -- vt0 Cheers, Tom
On Tue, 14 Aug 2012 19:13:33 -0400 Manolo Martínez <manolo@austrohungaro.com> wrote:
Hello,
If I'm not wrong, systemd makes consolekit superfluous. This is what I thought it took for polkit to work with systemd:
* compile polkit with --enable-systemd * enable the systemd polkit service * that's it?
But that's not it. Although polkit seems to work in console, it does not work in X. This is not terribly surprising, because I haven't done anything equivalent to launching my WM under "ck-launch-session", as I used to do with consolekit. Is there an equivalent way of launching the window manager under systemd-acting-as-consolekit?
I should explain that I'm using no display manager, and I'd like to keep it this way, if at all possible.
Do you start your window manager with startx? I start fluxbox that way, and switching to: startx -- vt01 prevents a different virtual terminal from being started, and everything works fine. -- John K Pate http://jkpate.net/ The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
On 08/15/12 at 12:25am, John K Pate wrote:
On Tue, 14 Aug 2012 19:13:33 -0400 Manolo Martínez <manolo@austrohungaro.com> wrote:
Hello,
If I'm not wrong, systemd makes consolekit superfluous. This is what I thought it took for polkit to work with systemd:
* compile polkit with --enable-systemd * enable the systemd polkit service * that's it?
But that's not it. Although polkit seems to work in console, it does not work in X. This is not terribly surprising, because I haven't done anything equivalent to launching my WM under "ck-launch-session", as I used to do with consolekit. Is there an equivalent way of launching the window manager under systemd-acting-as-consolekit?
I should explain that I'm using no display manager, and I'd like to keep it this way, if at all possible.
Do you start your window manager with startx? I start fluxbox that way, and switching to:
startx -- vt01
prevents a different virtual terminal from being started, and everything works fine.
Yes, that's a nice workaround. Thanks John and Tom. Manolo
On Tue, 14 Aug 2012 20:49:22 -0400 Manolo Martínez <manolo@austrohungaro.com> wrote:
On 08/15/12 at 12:25am, John K Pate wrote:
On Tue, 14 Aug 2012 19:13:33 -0400 Manolo Martínez <manolo@austrohungaro.com> wrote:
Hello,
If I'm not wrong, systemd makes consolekit superfluous. This is what I thought it took for polkit to work with systemd:
* compile polkit with --enable-systemd * enable the systemd polkit service * that's it?
But that's not it. Although polkit seems to work in console, it does not work in X. This is not terribly surprising, because I haven't done anything equivalent to launching my WM under "ck-launch-session", as I used to do with consolekit. Is there an equivalent way of launching the window manager under systemd-acting-as-consolekit?
I should explain that I'm using no display manager, and I'd like to keep it this way, if at all possible.
Do you start your window manager with startx? I start fluxbox that way, and switching to:
startx -- vt01
prevents a different virtual terminal from being started, and everything works fine.
Yes, that's a nice workaround. Thanks John and Tom.
Manolo
Except this doesn't work for rootless Xorg... -- Leonid Isaev GnuPG key: 0x164B5A6D Fingerprint: C0DF 20D0 C075 C3F1 E1BE 775A A7AE F6CB 164B 5A6D
participants (4)
-
John K Pate
-
Leonid Isaev
-
Manolo Martínez
-
Tom Gundersen