From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 12 09:26:32 2021 Received: (at submit) by debbugs.gnu.org; 12 Jun 2021 13:26:32 +0000 Received: from localhost ([127.0.0.1]:40638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ls3ei-0000Sc-2j for submit@debbugs.gnu.org; Sat, 12 Jun 2021 09:26:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:41882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ls3eg-0000SV-R1 for submit@debbugs.gnu.org; Sat, 12 Jun 2021 09:26:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ls3eg-0006St-Kk for bug-guix@gnu.org; Sat, 12 Jun 2021 09:26:30 -0400 Received: from mx1.dismail.de ([78.46.223.134]:22543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ls3ee-0006XS-TT for bug-guix@gnu.org; Sat, 12 Jun 2021 09:26:30 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 1bfe15b8 for ; Sat, 12 Jun 2021 15:26:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=date :message-id:from:to:subject; s=20190914; bh=sv+o4Ky6j6FfTiI+5ZkB z22wcEh3oz3ZorbeCr2jlbs=; b=hB++7Go23y3WWujd+CidksOcawZHKZqG05Z2 q5EhOl/pehoc9a4oLMIV8DDKkn77Y78FJXml9htgNpUd+MeEDdgRxfVtt64zJKEW xXIzZWon43ffmyYjn3HGlJtDY6YBYHZG4TjFrcu7hd1ln3zKFY56c9nwUmtyg73Y h7qhY+2vmzbckk7ntcKeU/rPah9ttZaP7NBX9b9RQL8ByLLsj6oxARqpdoc/HHOK o+pmzbD/Qt6HyrHaxINXg8qY/efLAJsUZ0xqApYnV5lr7hF3lwWBtuSYP8ctBUcy yphHJj5yYPwaYg5Y++FIjXr5puxvn3EKoM+mYTxCUuIrfekJGg== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id a6b70405 for ; Sat, 12 Jun 2021 15:26:26 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 7bfc211c for ; Sat, 12 Jun 2021 15:26:26 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 04001104 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sat, 12 Jun 2021 15:26:25 +0200 (CEST) Date: Sat, 12 Jun 2021 09:26:23 -0400 Message-Id: <87wnqz43k0.fsf@dismail.de> From: Joshua Branson To: bug-guix@gnu.org Subject: A possible shepherd bug (it's very minor) Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) Hello! I've had this issue every since I enabled automatic login on my guix system like so: #+BEGIN_SRC scheme (define %my-desktop-services (modify-services %desktop-services (mingetty-service-type config => (mingetty-configuration (inherit config) ;;auto login as joshua (auto-login "joshua"))))) (operating-system ... (services (list %my-desktop-services))) #+END_SRC This is the "error message" #+BEGIN_SRC sh This is the GNU system. Welcome dobby login: joshua (automatic login) This is the GNU operating system, welcome! Cannot make/remove an entry for the specified session #+END_SRC Essentially, mingetty tries to auto log me in, but I am using desktop services. So mingetty tries to log me in, before many of the desktop services are started. However, I guess this doesn't work. Meaning, my autostart sway script is NOT run, until AFTER all of the desktop services are started. WHICH IS PROBABLY A GOOD IDEA. I would rather log in, when my desktop services have started, not before. BUT the minor issue is that after I log in, =users= reports: #+BEGIN_SRC sh joshua@dobby ~> users joshua joshua joshua joshua joshua joshua #+END_SRC So it looks like 6 versions of myself are logged in by the time I am officially logged in and I auto start sway via .bash_profile: #+BEGING_SRC sh # Honor per-interactive-shell startup file if [ -f ~/.bashrc ]; then . ~/.bashrc; fi # shepherd if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then export MOZ_ENABLE_WAYLAND=1 export GUIX_PACKAGE_PATH=/home/joshua/prog/gnu/guix/guix-packages/ XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/home/joshua/.local/share/flatpak/exports/share:$XDG_DATA_DIRS # this may fix a bug that I have with termite confusing backspace as space in guix environment # export TERM=linux shepherd -c /home/joshua/.config/shepherd/init.scm & exec dbus-run-session sway fi #+END_SRC I'm guessing the root cause is that the shepherd starts most services sequentially at the moment. Anyway, I thought I'd share a minor issue with you all! Thanks! Joshua Branson