On Fri, Feb 7, 2014 at 5:25 PM, walt <w41...@gmail.com> wrote:
> On 02/07/2014 02:32 PM, Canek Peláez Valdés wrote:
>> Your seat seems to be the owner of both the power buttons and USB
>> devices, so you should not be asked for a password when powering down
>> the machine (unless another user or root is logged in, for example by
>> ssh), nor when using a USB stick.
>>
>> I repeat my question (if you already answered I apologize), do you
>> have systemd emerged with the policykit USE flag?
>
> Well, I know more now but understand less :)  I recompiled both systemd
> and polkit and they both have the correct useflags.
>
> After rebooting I looked at /run/systemd/seesions/1 and I'm now "ACTIVE".
>
> But next I startx (into xfce4) and look again:
>
> $cat /run/systemd/sessions/1
> # This is private data. Do not parse.
> UID=1001
> USER=wa1ter
> ACTIVE=0    <=================== not active
> STATE=online
> REMOTE=0
> TYPE=tty
> CLASS=user
> SCOPE=session-1.scope
> FIFO=/run/systemd/sessions/1.ref
> SEAT=seat0
> TTY=/dev/tty1
> SERVICE=login
> VTNR=1
> LEADER=431
> AUDIT=1
> REALTIME=1391814650100964
> MONOTONIC=29998146
>
> I think I remember having the same problem in the early days of consolekit
> and I used some kind of policy editor to fix it, but I don't remember much
> about it.

This is a known problem (or at least I heard something similar
before). You start your session when you log in, but then with startx,
that is lost in some cases because, technically, a VT session is
different from a X11 session (Wayland will take care of this, and many
other things). When you start your DE with gdm or lightdm, this
doesn't happen, because they talk to systemd (logind, actually) so
your session gets transferred to the X11 one. Supposedly, the Xfce
session manager (via startxfce4) has support for this, but only if
compiled with --enable-systemd, which is in turn supported by our
ebuilds.

So, a couple of questions:

  • Do you compiled xfce4-session with the systemd USE flag?
  • What do you have in $HOME/.xinitrc? I *think* it should just be
"exec startxfce4", if you used the systemd USE flag.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Reply via email to