You are not logged in.
I have autologin in getty enabled to autologin and .zlogin file to start Plasma directly:
$ cat /etc/systemd/system/getty@tty1.service.d/autologin.conf
[Service]
Environment=XDG_SESSION_TYPE=wayland
ExecStart=
ExecStart=-/sbin/agetty --skip-login --nonewline --noissue --noclear --autologin juan %I $TERM
$ cat .zlogin
[[ ! $DISPLAY && $XDG_VTNR -eq 1 ]] && /usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland #Plasma/WaylandThis works fine but I want when I click "Logout" to log out and log back in. Now what it does is to close Plasma and stay in the virtual console. I have to execute "exit" on the TTY and then it does go back into Plasma.
Some time ago I had the same configuration and it worked perfectly, but now, I have reinstalled Arch from scratch, I can't get it to work.
Last edited by j1simon (2023-01-19 13:53:53)
Offline
I just noticed a note on the wiki page about greetd. I installed it and got what I wanted with this configuration file:
$ cat /etc/greetd/config.toml
[terminal]
# The VT to run the greeter on. Can be "next", "current" or a number
# designating the VT.
vt = 1
# The default session, also known as the greeter.
[default_session]
command = "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland"
user = "juan"
[initial_session]
command = "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland"
user = "juan"Although I have solved it this way, I still want to know how to do this without greetd. I know it can be done because I used to do it but I don't remember and don't have backups of the files.
Offline
Online