From: Joshua Branson via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 48974@debbugs.gnu.org
Subject: bug#48974: A possible shepherd bug (it's very minor)
Date: Sat, 12 Jun 2021 09:26:23 -0400 [thread overview]
Message-ID: <87wnqz43k0.fsf@dismail.de> (raw)
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
next reply other threads:[~2021-06-12 13:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-12 13:26 Joshua Branson via Bug reports for GNU Guix [this message]
2021-06-12 19:39 ` bug#48974: A possible shepherd bug (it's very minor) Leo Prikler
2021-06-12 20:09 ` jbranso--- via Bug reports for GNU Guix
2021-06-12 21:13 ` Leo Prikler
2021-06-25 9:31 ` Joshua Branson via Bug reports for GNU Guix
2021-06-25 9:56 ` Leo Prikler
2021-06-25 18:06 ` Joshua Branson via Bug reports for GNU Guix
2021-06-25 18:28 ` Leo Prikler
2021-07-02 22:57 ` Joshua Branson via Bug reports for GNU Guix
2021-07-03 6:41 ` Leo Prikler
2021-07-03 7:37 ` pelzflorian (Florian Pelz)
2021-07-05 23:59 ` Joshua Branson via Bug reports for GNU Guix
2021-06-12 23:34 ` jbranso--- via Bug reports for GNU Guix
2021-06-13 7:48 ` Leo Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnqz43k0.fsf@dismail.de \
--to=bug-guix@gnu.org \
--cc=48974@debbugs.gnu.org \
--cc=jbranso@dismail.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).