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 8B28F1396D0 for ; Tue, 12 Sep 2017 12:13:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 720071FC09E; Tue, 12 Sep 2017 12:13:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 2AACC1FC06B for ; Tue, 12 Sep 2017 12:13:38 +0000 (UTC) Received: from [IPv6:2001:44b8:4197:2800:a37a:5ec1:db17:1e49] (2001-44b8-4197-2800-a37a-5ec1-db17-1e49.static.ipv6.internode.on.net [IPv6:2001:44b8:4197:2800:a37a:5ec1:db17:1e49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kensington) by smtp.gentoo.org (Postfix) with ESMTPSA id BAC843417CF for ; Tue, 12 Sep 2017 12:13:36 +0000 (UTC) Subject: [gentoo-user] Re: Unlocking Plasma desktop in Gentoo without systemd References: <1796091.ePQMIEJqSB@dell_xps> <114afe11-602f-39f0-e240-2bbd0c8948c0@gmail.com> To: gentoo-user@lists.gentoo.org From: Michael Palimaka Message-ID: <7ca2b0e8-a8f8-eb4e-8b60-ee7f262c4b7e@gentoo.org> Date: Tue, 12 Sep 2017 22:13:32 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <114afe11-602f-39f0-e240-2bbd0c8948c0@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Archives-Salt: 38fa2eff-bcd4-4a5a-a29c-eb150b12317c X-Archives-Hash: 7bf3cfd3fb8d6684adfc630afc18d963 On 09/12/2017 05:04 AM, Daniel Frey wrote: > According to a comment in the bug, you can try to figure out which > session it is (ck-list-sessions) and look for the X11 display property > set. This will not work (or could be difficult) if you have several > users using KDE at the same time and can't tell the sessions apart. > > Once you figure that out, remember the session name and: > > # su -c 'dbus-send --system --print-reply \ > --dest="org.freedesktop.ConsoleKit" \ > /org/freedesktop/ConsoleKit/ \ > org.freedesktop.ConsoleKit.Session.Unlock' > If there a nice way to wrap this up in a script I'd be interesting in shipping this for non-logind systems. Another option is sys-auth/elogind, which provides the logind interface and tools (like loginctl) for non-systemd systems. This is what I've been testing with OpenRC for some time. I read that ConsoleKit is also supporting the logind dbus interface now. This would in theory make it easy to create a tool to unlock the session, but I haven't had a chance to test it yet.