From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A91F0138334 for ; Tue, 29 Oct 2019 15:01:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3316FE0897; Tue, 29 Oct 2019 15:01:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B64FAE07FA for ; Tue, 29 Oct 2019 15:01:54 +0000 (UTC) Received: from tux200s.localnet (unknown [62.99.226.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: asturm) by smtp.gentoo.org (Postfix) with ESMTPSA id 32D8034C53F; Tue, 29 Oct 2019 15:01:52 +0000 (UTC) From: Andreas Sturmlechner To: pr Cc: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] [RFC] News Item v2: Desktop profile switching USE default to elogind Date: Tue, 29 Oct 2019 16:01:49 +0100 Message-ID: <2184987.AYBGTMIK51@tux200s> Organization: Gentoo In-Reply-To: References: <2364611.2xGvymeTQd@tuxk10> <1746509.WGgRJKmoJg@tuxk10> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Archives-Salt: ebe814d8-09a1-4110-933c-2d013e16bc54 X-Archives-Hash: 39550087ef2d81ee019394effa65d309 Title: Desktop profile switching USE default to elogind Author: Andreas Sturmlechner Posted: 2019-10-31 Revision: 1 News-Item-Format: 2.0 Display-If-Installed: sys-auth/consolekit Display-If-Profile: default/linux/alpha/17.0/desktop Display-If-Profile: default/linux/amd64/17.0/desktop Display-If-Profile: default/linux/amd64/17.0/desktop/plasma Display-If-Profile: default/linux/amd64/17.1/desktop Display-If-Profile: default/linux/amd64/17.1/desktop/plasma Display-If-Profile: default/linux/arm/17.0/armv4/desktop Display-If-Profile: default/linux/arm/17.0/armv4/desktop/plasma Display-If-Profile: default/linux/arm/17.0/armv4t/desktop Display-If-Profile: default/linux/arm/17.0/armv4t/desktop/plasma Display-If-Profile: default/linux/arm/17.0/armv5te/desktop Display-If-Profile: default/linux/arm/17.0/armv5te/desktop/plasma Display-If-Profile: default/linux/arm/17.0/armv6j/desktop Display-If-Profile: default/linux/arm/17.0/armv6j/desktop/plasma Display-If-Profile: default/linux/arm/17.0/armv7a/desktop Display-If-Profile: default/linux/arm/17.0/armv7a/desktop/plasma Display-If-Profile: default/linux/arm/17.0/desktop Display-If-Profile: default/linux/arm/17.0/desktop/plasma Display-If-Profile: default/linux/arm64/17.0/desktop Display-If-Profile: default/linux/arm64/17.0/desktop/plasma Display-If-Profile: default/linux/hppa/17.0/desktop Display-If-Profile: default/linux/ia64/17.0/desktop Display-If-Profile: default/linux/m68k/17.0/desktop Display-If-Profile: default/linux/powerpc/ppc32/17.0/desktop Display-If-Profile: default/linux/powerpc/ppc64/17.0/32bit-userland/desktop Display-If-Profile: default/linux/powerpc/ppc64/17.0/64bit-userland/desktop Display-If-Profile: default/linux/sh/17.0/desktop Display-If-Profile: default/linux/sparc/17.0/64ul/desktop Display-If-Profile: default/linux/sparc/17.0/desktop Display-If-Profile: default/linux/x86/17.0/desktop Display-If-Profile: default/linux/x86/17.0/desktop/plasma 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