1 |
Title: Desktop profile switching USE default to elogind |
2 |
Author: Andreas Sturmlechner <asturm@g.o> |
3 |
Content-Type: text/plain |
4 |
Posted: 2019-10-31 |
5 |
Revision: 1 |
6 |
News-Item-Format: 1.0 |
7 |
Display-If-Installed: sys-auth/consolekit |
8 |
Display-If-Profile: default/linux/alpha/17.0/desktop |
9 |
Display-If-Profile: default/linux/amd64/17.0/desktop |
10 |
Display-If-Profile: default/linux/amd64/17.0/desktop/plasma |
11 |
Display-If-Profile: default/linux/amd64/17.1/desktop |
12 |
Display-If-Profile: default/linux/amd64/17.1/desktop/plasma |
13 |
Display-If-Profile: default/linux/arm/17.0/armv4/desktop |
14 |
Display-If-Profile: default/linux/arm/17.0/armv4/desktop/plasma |
15 |
Display-If-Profile: default/linux/arm/17.0/armv4t/desktop |
16 |
Display-If-Profile: default/linux/arm/17.0/armv4t/desktop/plasma |
17 |
Display-If-Profile: default/linux/arm/17.0/armv5te/desktop |
18 |
Display-If-Profile: default/linux/arm/17.0/armv5te/desktop/plasma |
19 |
Display-If-Profile: default/linux/arm/17.0/armv6j/desktop |
20 |
Display-If-Profile: default/linux/arm/17.0/armv6j/desktop/plasma |
21 |
Display-If-Profile: default/linux/arm/17.0/armv7a/desktop |
22 |
Display-If-Profile: default/linux/arm/17.0/armv7a/desktop/plasma |
23 |
Display-If-Profile: default/linux/arm/17.0/desktop |
24 |
Display-If-Profile: default/linux/arm/17.0/desktop/plasma |
25 |
Display-If-Profile: default/linux/arm64/17.0/desktop |
26 |
Display-If-Profile: default/linux/arm64/17.0/desktop/plasma |
27 |
Display-If-Profile: default/linux/hppa/17.0/desktop |
28 |
Display-If-Profile: default/linux/ia64/17.0/desktop |
29 |
Display-If-Profile: default/linux/m68k/17.0/desktop |
30 |
Display-If-Profile: default/linux/powerpc/ppc32/17.0/desktop |
31 |
Display-If-Profile: default/linux/powerpc/ppc64/17.0/32bit-userland/desktop |
32 |
Display-If-Profile: default/linux/powerpc/ppc64/17.0/64bit-userland/desktop |
33 |
Display-If-Profile: default/linux/sh/17.0/desktop |
34 |
Display-If-Profile: default/linux/sparc/17.0/64ul/desktop |
35 |
Display-If-Profile: default/linux/sparc/17.0/desktop |
36 |
Display-If-Profile: default/linux/x86/17.0/desktop |
37 |
Display-If-Profile: default/linux/x86/17.0/desktop/plasma |
38 |
|
39 |
ConsoleKit2 is unmaintained upstream for almost two years [1]. There are many |
40 |
longstanding bugs and papercuts with consumers that aren't being fixed, not |
41 |
least because these code paths receive very little testing. |
42 |
|
43 |
Enter the elogind project [2], which is a standalone logind implementation |
44 |
based on systemd code, currently maintained by a fellow Gentoo user. We have |
45 |
had sys-auth/elogind available in Gentoo since the beginning of 2017, and |
46 |
meanwhile it has gained support [3] in KDE Plasma, Gnome [4], Cinnamon, MATE |
47 |
and Xfce, as well as most other former consolekit consumers. |
48 |
|
49 |
Consequently, the desktop profile is switching away from consolekit to elogind. |
50 |
Users of sys-auth/consolekit who selected a different profile should consider |
51 |
doing the same. A guide is available [5]. Migration is easy, but if run from |
52 |
within a consolekit session that session may become broken. |
53 |
|
54 |
Rely either on the profile, or set USE="elogind -consolekit" in make.conf |
55 |
yourself. Make sure there is no consolekit debris in /etc/portage/package.use: |
56 |
|
57 |
# grep -R consolekit /etc/portage/package.use |
58 |
|
59 |
Rebuild all affected consumers and remove sys-auth/consolekit: |
60 |
|
61 |
# emerge --ask --changed-use --deep world |
62 |
# emerge --unmerge consolekit |
63 |
|
64 |
Optional, but recommended in case of trouble such as missing reboot/shutdown |
65 |
capabilities in the DM: |
66 |
|
67 |
# rc-update add elogind boot |
68 |
|
69 |
For users of startx instead of one of the supported DMs, do not forget to |
70 |
update ~/.xinitrc accordingly (ck-launch-session is gone without replacement). |
71 |
|
72 |
PS: Subsequently, this will lead to the last-riting of sys-power/pm-utils [6] |
73 |
which is dead even longer than the original ConsoleKit(1) project. KDE Plasma |
74 |
users sticking with sys-auth/consolekit are then going to lose suspend from |
75 |
GUI without superuser rights. |
76 |
|
77 |
[1] https://github.com/ConsoleKit2/ConsoleKit2 |
78 |
[2] https://github.com/elogind/elogind |
79 |
[3] https://bugs.gentoo.org/show_bug.cgi?id=elogind-support |
80 |
[4] https://blogs.gentoo.org/leio/2019/03/26/gnome-3-30/ |
81 |
[5] https://wiki.gentoo.org/wiki/Elogind |
82 |
[6] https://bugs.gentoo.org/659616 |