You are not logged in.

#1 2023-01-19 12:37:22

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 190

[SOLVED]I want plasma logout session restart Plasma

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/Wayland

This 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

#2 2023-01-19 13:01:26

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 190

Re: [SOLVED]I want plasma logout session restart Plasma

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

#3 2023-01-19 13:37:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,016

Offline

Board footer

Powered by FluxBB