GNU bug report logs - #22835
slim-service takes undocumented parameter and behaves surprisingly on auto-login

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Andreas Enge <andreas@HIDDEN>; dated Sat, 27 Feb 2016 23:16:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to 'slim-service takes undocumented parameter and behaves surprisingly on auto-login' from 'Autologin' Request was from Andreas Enge <andreas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 22835 <at> debbugs.gnu.org:


Received: (at 22835) by debbugs.gnu.org; 28 Feb 2016 15:55:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 28 10:55:58 2016
Received: from localhost ([127.0.0.1]:50906 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aa3hO-0006P7-7R
	for submit <at> debbugs.gnu.org; Sun, 28 Feb 2016 10:55:58 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52430)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <ludo@HIDDEN>) id 1aa3hM-0006Ou-Of
 for 22835 <at> debbugs.gnu.org; Sun, 28 Feb 2016 10:55:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1aa3hE-0002Pk-Jo
 for 22835 <at> debbugs.gnu.org; Sun, 28 Feb 2016 10:55:51 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37719)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1aa3hE-0002Pg-G2; Sun, 28 Feb 2016 10:55:48 -0500
Received: from reverse-83.fdn.fr ([80.67.176.83]:34368 helo=pluto)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1aa3hD-0005lZ-O5; Sun, 28 Feb 2016 10:55:48 -0500
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Andreas Enge <andreas@HIDDEN>
Subject: Re: bug#22835: Autologin
References: <20160227231453.GA11981@solar> <87wpppcegh.fsf@HIDDEN>
 <20160228105322.GA4648@solar>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 10 =?utf-8?Q?Vent=C3=B4se?= an 224 de la =?utf-8?Q?R?=
 =?utf-8?Q?=C3=A9volution?=
X-PGP-Key-ID: 0x3D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Sun, 28 Feb 2016 16:55:45 +0100
In-Reply-To: <20160228105322.GA4648@solar> (Andreas Enge's message of "Sun, 28
 Feb 2016 11:53:22 +0100")
Message-ID: <87k2lox20u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 22835
Cc: Ricardo Wurmus <rekado@HIDDEN>, 22835 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Side comment: could you change the subject to a phrase that reflects
what the bug is?  :-)

(Use the =E2=80=98retitle=E2=80=99 command of request <at> debbugs.gnu.org,
<http://debbugs.gnu.org/server-refcard.html>.)

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#22835; Package guix. Full text available.

Message received at 22835 <at> debbugs.gnu.org:


Received: (at 22835) by debbugs.gnu.org; 28 Feb 2016 10:53:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 28 05:53:34 2016
Received: from localhost ([127.0.0.1]:49548 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aZyyk-0005Mx-B2
	for submit <at> debbugs.gnu.org; Sun, 28 Feb 2016 05:53:34 -0500
Received: from mailrelay6.public.one.com ([91.198.169.200]:16522)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <andreas@HIDDEN>) id 1aZyyi-0005Mk-19
 for 22835 <at> debbugs.gnu.org; Sun, 28 Feb 2016 05:53:32 -0500
X-HalOne-Cookie: d1604026fa9e0c629cd3502bc6bedbdb3799227a
X-HalOne-ID: 7d91bdf1-de09-11e5-a8c0-b82a72d06996
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=enge.fr; s=20140924;
 h=from:subject:date:message-id:to:cc:mime-version:content-type:
 content-transfer-encoding:in-reply-to:references;
 bh=4s0EjA7glkXBhvqz/bsVAZYeKfrbMvBr++z4IhMX14E=;
 b=PDq75dIPkQ7bQ7DhVYz2Au0Z2Ox85e9X1n4H1OKfzwtkxlhPG+sDQQ9KRKkxOOyOC44j/7KdNL28Y
 6q5WgHPsQCpBa8uixeKjEQ0eyIuytl05/8AAs3xLE7HD7+1OUjT36X6xlRVB3E97c+M3QdvrTliYx/
 Ra9LMwJnr4QMFdbA=
Received: from solar (unknown [92.89.73.211])
 by smtpfilter3.public.one.com (Halon Mail Gateway) with ESMTPSA;
 Sun, 28 Feb 2016 10:53:24 +0000 (UTC)
Date: Sun, 28 Feb 2016 11:53:22 +0100
From: Andreas Enge <andreas@HIDDEN>
To: Ricardo Wurmus <rekado@HIDDEN>
Subject: Re: bug#22835: Autologin
Message-ID: <20160228105322.GA4648@solar>
References: <20160227231453.GA11981@solar>
 <87wpppcegh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87wpppcegh.fsf@HIDDEN>
User-Agent: Mutt/1.5.24 (2015-08-30)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 22835
Cc: 22835 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sun, Feb 28, 2016 at 11:32:46AM +0100, Ricardo Wurmus wrote:
> Andreas Enge <andreas@HIDDEN> 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





Information forwarded to bug-guix@HIDDEN:
bug#22835; Package guix. Full text available.

Message received at 22835 <at> debbugs.gnu.org:


Received: (at 22835) by debbugs.gnu.org; 28 Feb 2016 10:32:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 28 05:32:58 2016
Received: from localhost ([127.0.0.1]:49540 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aZyeo-0004tQ-AK
	for submit <at> debbugs.gnu.org; Sun, 28 Feb 2016 05:32:58 -0500
Received: from sender163-mail.zoho.com ([74.201.84.163]:25912)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <rekado@HIDDEN>) id 1aZyem-0004tF-Iw
 for 22835 <at> debbugs.gnu.org; Sun, 28 Feb 2016 05:32:57 -0500
Received: from localhost (x4d0cd8b4.dyn.telefonica.de [77.12.216.180]) by
 mx.zohomail.com with SMTPS id 1456655570467658.045268489603;
 Sun, 28 Feb 2016 02:32:50 -0800 (PST)
References: <20160227231453.GA11981@solar>
User-agent: mu4e 0.9.13; emacs 24.5.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: Andreas Enge <andreas@HIDDEN>
Subject: Re: bug#22835: Autologin
In-reply-to: <20160227231453.GA11981@solar>
Date: Sun, 28 Feb 2016 11:32:46 +0100
Message-ID: <87wpppcegh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Zoho-Virus-Status: 1
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 22835
Cc: 22835 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)


Andreas Enge <andreas@HIDDEN> writes:

> I am trying to create a configuration using slim-service with autologin.
>
> 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)))
>
> The parameter auto-login-session is not documented in guix.texi.
>
> 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”:

    (services (modify-services %desktop-services
                (slim-service-type config =>
                  (slim-configuration (inherit config)
                    (auto-login? #t)
                    (default-user "rekado")))))

~~ Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#22835; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Feb 2016 23:15:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 27 18:15:12 2016
Received: from localhost ([127.0.0.1]:49188 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aZo4u-0003CX-H4
	for submit <at> debbugs.gnu.org; Sat, 27 Feb 2016 18:15:12 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57706)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <andreas@HIDDEN>) id 1aZo4t-0003CM-W4
 for submit <at> debbugs.gnu.org; Sat, 27 Feb 2016 18:15:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andreas@HIDDEN>) id 1aZo4o-0004ww-0t
 for submit <at> debbugs.gnu.org; Sat, 27 Feb 2016 18:15:06 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37068)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andreas@HIDDEN>) id 1aZo4n-0004wq-Uc
 for submit <at> debbugs.gnu.org; Sat, 27 Feb 2016 18:15:05 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48675)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andreas@HIDDEN>) id 1aZo4n-0006nb-0q
 for bug-guix@HIDDEN; Sat, 27 Feb 2016 18:15:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andreas@HIDDEN>) id 1aZo4h-0004sO-V9
 for bug-guix@HIDDEN; Sat, 27 Feb 2016 18:15:04 -0500
Received: from mailrelay7.public.one.com ([91.198.169.215]:35546)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andreas@HIDDEN>) id 1aZo4h-0004s5-Ir
 for bug-guix@HIDDEN; Sat, 27 Feb 2016 18:14:59 -0500
X-HalOne-Cookie: e66dedfbf29be0c5c91f948bfda9a2399af9c7e9
X-HalOne-ID: e9986122-dda7-11e5-882a-b82a72cffc46
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=enge.fr; s=20140924;
 h=from:subject:date:message-id:to:mime-version:content-type;
 bh=ejomVGUEFbk1+M0vqH8MnuUoqZn1v0hyS2OkTwr15ik=;
 b=SslL3r+ccKcRhJQpMcoQy+DdK+BHe3mLQEy5LC0Mi+YfaSZc67taRtiPxeJRZKS65Ar8BXNI+MeIc
 2Y0P3paktSA7sGUsiSdkm/XeIjxuCf8xhFy6U3rB98xSeh59F/EGU3DizBDv/uxz6joHwpSZF3fJ55
 yyL6z1dpQgd12uL0=
Received: from solar (unknown [92.89.73.211])
 by smtpfilter4.public.one.com (Halon Mail Gateway) with ESMTPSA;
 Sat, 27 Feb 2016 23:14:54 +0000 (UTC)
Date: Sun, 28 Feb 2016 00:14:53 +0100
From: Andreas Enge <andreas@HIDDEN>
To: bug-guix@HIDDEN
Subject: Autologin
Message-ID: <20160227231453.GA11981@solar>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.24 (2015-08-30)
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Hello,

I am trying to create a configuration using slim-service with autologin.

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)))

The parameter auto-login-session is not documented in guix.texi.

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?

Andreas





Acknowledgement sent to Andreas Enge <andreas@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#22835; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 28 Feb 2016 16:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.