[systemd-devel] startxfce4 vs logind

Mantas Mikulėnas grawity at gmail.com
Sat Sep 19 16:04:07 PDT 2015


On Sun, Sep 20, 2015 at 1:05 AM, Dimitri John Ledkov <
dimitri.j.ledkov at intel.com> wrote:

> Heya,
>
> I boot to tty1, and login as my normal user account.
>
> Session c1, is active and has type tty. And I can access devices which
> are marked as uaccess.
>
> Then I do $ startxfce4 -> which starts graphical interface. However,
> at that time I "loose" the logind session. No new sessions are
> started, session c1 is "Active=no" & "State=online" and i cannot
> access uaccess devices any more.
>
> Both startxfce4 and systemd are compiled without policykit support (no
> idea if this matters).
>
> What I am doing wrong? Should I go talk to xfce4 people?
>
> My expectation was for a new session c2 to be started and switched to,
> type graphical, online and active. Whilst keeping c1 tty session
> online and in-active.
>

That was possible with ConsoleKit, but logind does not allow nested
sessions this way.

Instead, you can keep session c1 active by starting Xorg on the *same* tty.
Modern startx should do this automatically; earlier you had to modify your
.xserverrc like this:

https://projects.archlinux.org/svntogit/packages.git/tree/trunk/xserverrc?h=packages/xorg-xinit&id=37b4597466e99667ba6035854b3386a2ee83e563

(note this is no longer present in Arch's xinit as it has been moved to
startx itself)

I don't know how startxfce4 launches Xorg, though, but you could just use
startx for it (i.e. start "startxfce4" from your .xinitrc).

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150920/406c4404/attachment.html>


More information about the systemd-devel mailing list