From debbugs-submit-bounces@debbugs.gnu.org Sun May 24 18:18:09 2020 Received: (at submit) by debbugs.gnu.org; 24 May 2020 22:18:09 +0000 Received: from localhost ([127.0.0.1]:39015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcywb-0002VY-7G for submit@debbugs.gnu.org; Sun, 24 May 2020 18:18:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:44282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcywa-0002VR-2N for submit@debbugs.gnu.org; Sun, 24 May 2020 18:18:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcywZ-0004yI-Ty for bug-guix@gnu.org; Sun, 24 May 2020 18:18:07 -0400 Received: from ciao.gmane.io ([159.69.161.202]:33028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcywU-0002oK-Cw for bug-guix@gnu.org; Sun, 24 May 2020 18:18:07 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jcywS-000S1d-Gr for bug-guix@gnu.org; Mon, 25 May 2020 00:18:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-guix@gnu.org From: Stefan Huchler Subject: Slim package unnessesarily conflates default-user/default-session with autologin Date: Mon, 25 May 2020 00:17:53 +0200 Message-ID: <87tv05t1ta.fsf@mail.de> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:WS4idjhezh//ouUy/3ohr8I+GbM= Received-SPF: pass client-ip=159.69.161.202; envelope-from=gcggb-bug-guix@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/24 18:18:00 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 9 X-Spam_score: 0.9 X-Spam_bar: / X-Spam_report: (0.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HK_RANDOM_ENVFROM=0.001, SPF_PASS=-0.001, TO_NO_BRKTS_PCNT=2.499, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The 3 options of default-user / default-login-session and autologin are not as tight coupled and should in fact it's the wrong way coupled: > When @var{auto-login?} is true, log in automatically as > @var{default-user} with @var{auto-login-session}. Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: archlinux.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefan.huchler[at]mail.de) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=gcggb-bug-guix%40m.gmane-mx.org; ip=209.51.188.17; r=debbugs.gnu.org] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 SPOOFED_FREEMAIL No description available. 2.4 TO_NO_BRKTS_PCNT To: lacks brackets + percentage X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) The 3 options of default-user / default-login-session and autologin are not as tight coupled and should in fact it's the wrong way coupled: > When @var{auto-login?} is true, log in automatically as > @var{default-user} with @var{auto-login-session}. So you can set auto-login? #t and don't set the other 2 values and it then succesfully reconfigures but just presents the normal login screen and not autologins. But if you only use default-user or auto-login-session but keep auto-login? #f this values get not written in the config and therefor the settings get just ignored: (if (slim-configuration-auto-login? config) (string-append "auto_login yes\ndefault_user " (slim-configuration-default-user config) "\n") "") At least that is true for user, I find no code for the auto-login-session but when I set it without autologin it seems to get ignored, too. But the default user setting works independent from autologin: https://wiki.archlinux.org/index.php/SLiM#Set_default_username In fact the default-session seems to be also only useful for autologin as far as I can tell: (let* ((xinitrc (xinitrc #:fallback-session (slim-configuration-auto-login-session config))) ... login_cmd exec " xinitrc " %session ... ) There seems to be different ways to have per user default sessions or global so I am not 100% sure about that, but you can set default user without conflating that with autologin, while you maybe need a default-user for autologin you don't need autologin for a default-user.