From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IL3SDuHyyl5EUAAA0tVLHw (envelope-from ) for ; Sun, 24 May 2020 22:19:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cM12CuHyyl41VQAAbx9fmQ (envelope-from ) for ; Sun, 24 May 2020 22:19:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9D6D19400C3 for ; Sun, 24 May 2020 22:19:12 +0000 (UTC) Received: from localhost ([::1]:41964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcyxZ-00051K-Ho for larch@yhetil.org; Sun, 24 May 2020 18:19:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcyxS-000517-NG for bug-guix@gnu.org; Sun, 24 May 2020 18:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcyxS-00039L-Dd for bug-guix@gnu.org; Sun, 24 May 2020 18:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcyxS-0002Wh-Ab for bug-guix@gnu.org; Sun, 24 May 2020 18:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41516: Slim package unnessesarily conflates default-user/default-session with autologin Resent-From: Stefan Huchler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 24 May 2020 22:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41516 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41516@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15903586899648 (code B ref -1); Sun, 24 May 2020 22:19:02 +0000 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/ From: Stefan Huchler 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.9 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mail.de (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.41 X-TUID: qCGkgi1LP/ux 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.