public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [RFC] News Item v3: Desktop profile switching USE default to elogind
@ 2020-04-13 13:19 Andreas Sturmlechner
  2020-04-13 13:50 ` Andreas Sturmlechner
  2020-04-13 16:27 ` Andreas Sturmlechner
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2020-04-13 13:19 UTC (permalink / raw
  To: gentoo-dev; +Cc: gentoo-pr

[-- Attachment #1: Type: text/plain, Size: 2764 bytes --]

One last RFC before this will be implemented. News will be displayed to anyone 
having sys-auth/consolekit installed.


Title: Desktop profile switching USE default to elogind
Author: Andreas Sturmlechner <asturm@gentoo.org>
Posted: 2020-04-13
Revision: 1
News-Item-Format: 2.0
Display-If-Installed: sys-auth/consolekit

Modern desktop environments make use of PAM session tracking for users, login 
sessions and seats. [1] The most user-visible part of that is device and file 
permissions management and reboot/shutdown handling without superuser rights.

Users with systemd can stop reading here and continue with their daily 
routine.

ConsoleKit2 is unmaintained upstream for almost two years [2]. There are many 
longstanding bugs and papercuts with consumers that aren't being fixed, not 
least because these code paths receive very little testing.

Enter the elogind project [3], which is a standalone logind implementation 
based on systemd code, currently maintained by a fellow Gentoo user. We have 
had sys-auth/elogind available in Gentoo since the beginning of 2017, and 
meanwhile it has gained support [4] in KDE Plasma, Gnome [5], Cinnamon, MATE 
and Xfce, as well as most other former consolekit consumers.

Consequently, the desktop profile is switching away from consolekit to 
elogind. Users of sys-auth/consolekit who selected a different profile should 
consider doing the same. A guide is available [6]. Migration is easy, but if 
run from within a consolekit session that session may become broken.

Rely either on the profile, or set USE="elogind -consolekit" in make.conf 
yourself. Make sure there is no consolekit debris in /etc/portage/package.use:

# grep -R consolekit /etc/portage/package.use

Rebuild all affected consumers and remove sys-auth/consolekit:

# emerge --ask --changed-use --deep @world
# emerge --depclean consolekit

Optional, but recommended in case of trouble such as missing reboot/shutdown 
capabilities in the DM:

# rc-update add elogind boot

For users of startx instead of one of the supported DMs, do not forget to 
update ~/.xinitrc accordingly (ck-launch-session is gone without replacement).

PS: Subsequently, this will lead to the last-riting of sys-power/pm-utils [7]
which is dead even longer than the original ConsoleKit(1) project. KDE Plasma 
users sticking with sys-auth/consolekit are then going to lose suspend from 
GUI without superuser rights.

[1] https://wiki.gentoo.org/wiki/ConsoleKit
[2] https://github.com/ConsoleKit2/ConsoleKit2
[3] https://github.com/elogind/elogind/blob/master/README.md
[4] https://bugs.gentoo.org/show_bug.cgi?id=elogind-support
[5] https://blogs.gentoo.org/leio/2019/03/26/gnome-3-30/
[6] https://wiki.gentoo.org/wiki/Elogind
[7] https://bugs.gentoo.org/659616

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-13 16:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-13 13:19 [gentoo-dev] [RFC] News Item v3: Desktop profile switching USE default to elogind Andreas Sturmlechner
2020-04-13 13:50 ` Andreas Sturmlechner
2020-04-13 16:27 ` Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox