From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: bug#22835: Autologin Date: Sun, 28 Feb 2016 11:53:22 +0100 Message-ID: <20160228105322.GA4648@solar> References: <20160227231453.GA11981@solar> <87wpppcegh.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZyzF-0007Le-I0 for bug-guix@gnu.org; Sun, 28 Feb 2016 05:54:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZyzC-0005Bg-Ah for bug-guix@gnu.org; Sun, 28 Feb 2016 05:54:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZyzC-0005Bc-5z for bug-guix@gnu.org; Sun, 28 Feb 2016 05:54:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZyzB-0005Nd-PE for bug-guix@gnu.org; Sun, 28 Feb 2016 05:54:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87wpppcegh.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: 22835@debbugs.gnu.org On Sun, Feb 28, 2016 at 11:32:46AM +0100, Ricardo Wurmus wrote: > Andreas Enge writes: > > Looking at the code in gnu/services/xorg.scm, I find the following definition: > > (define* (slim-service #:key (slim slim) > > (allow-empty-passwords? #t) auto-login? > > (default-user "") > > (theme %default-slim-theme) > > (theme-name %default-slim-theme-name) > > (xauth xauth) (shepherd shepherd) (bash bash) > > (auto-login-session #~(string-append #$windowmaker > > "/bin/wmaker")) > > (startx (xorg-start-command))) > > It also is a bit surprising; since I had added only xfce to my packages, > > I expected this to start. Or is this impossible to realise? > > I have a working auto-login configuration using “modify-services”: Sorry, I forgot to describe what "does not work" in my opinion. With auto-login? set to #f, I get the login screen with a selection of sessions. By default, xfce and ratpoison, since these are the packages present in the default configuration. I deleted ratpoison from my configuration, so I can only log in to xfce after typing user and password. Now when I set auto-login? to #t, it does not log into xfce, but launches the command given in auto-login-session. So I end up with windowmaker, which did not even appear in the package list (but probably gets pulled in auto- matically somehow). So at the least, the parameter needs to be documented. I easily modified it to launch startxfce4 of the xfce package instead, and ended up in xfce. Maybe this could be made the default choice anyway to be consistent with our example desktop configuration? More logically would be to log into one of the sessions that is also proposed when auto-login? is set to #f. But this looks more complex, even more so when there are several options present (which ones to choose?), so maybe just documenting the command would be enough. Andreas