:: Re: [DNG] [ASCII][PATCH] startx to …
Kezdőlap
Delete this message
Reply to this message
Szerző: Dario Niedermann
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] [ASCII][PATCH] startx to a new tty
Il 16/09/2018 alle 18:43, Andreas Messer ha scritto:

> Thanks for pointing that out. Unfortunately, many DEs have hopped on
> the systemd train and therefore depend on its services. In particular,
> the missing logind was the main barrier to have DEs like Gnome or KDE
> fully working on Devuan. With fully working I refer to how standard users
> would expected an desktop environment to behave.
>
> Therefor elogind was added to Devuan as a replacement for systemd's
> logind. But actually elogind is just the logind component from systemd
> mangled to run standalone. I expect it to show almost the same
> behavior like the original one.


I see. Anyway I strongly doubt that any DE relies on startx internally:
it's a shell script that's intended to provide a convenient user
interface to console users who want to spawn an X session.

Also note that startx will *always* run X as root, even the stock Devuan
version. My patch doesn't change that. The 'needs_root_rights' variable
I add to 'Xwrapper.config' is only there for Xwrapper (a short lived
program called by startx) to be able to allocate a new tty. After which
it spawns X and quits.

With the stock RedHat-derived version, instead, a new tty is not
allocated: the current tty is taken over by X when you issue startx.
After X quits, the current tty is released, but is now owned by root
(no longer by your user). Which is not the way the XFree86 / Xorg
devs intended startx to work.

Later,
-- 
Dario Niedermann.                 Also on the Internet at:


gopher://darioniedermann.it/ <> https://www.darioniedermann.it/