Sessions in i3 + Lightdm
Hi,
when I log out from i3 (i3-msg exit
) and log in using Lightdm new user session is created, but the old one is still running.
- Is it possible to not create new session but rather "reuse" the old session?
- Would it be better to terminate the session when exiting i3? (something like
i3-msg exit && loginctl terminate-session
)
I am running Fedora 22.
Why am I asking: I cant use systemctl reboot
without root (sudo) privileges in the newly created session.
UPDATE:
I think i found the reason - The two daemons from the output below keep the session from closing. The session exits correctly if the remaining processes are killed also systemctl reboot
does not require root privileges (Don't know why though).
$ loginctl session-status 1
1 - bean (1000)
Since: Mon 2015-11-23 12:43:06 CET; 3min 21s ago
Leader: 2519
Seat: seat0; vc1
Display: :0
Service: lightdm; type x11; class user
State: closing
Unit: session-1.scope
├─2899 /usr/bin/pulseaudio --start --log-target=syslog
└─3058 redshift
There is no reason why you should be able to exit i3 AND then re enter the same session i3 should have terminated upon exit. Please define "still running".
@Michael Rose loginctl lists both sessions - the one I just exited, and the new one