Sessions in i3 + Lightdm

asked 2015-11-19 18:41:28 +0000

LordFazole gravatar image

updated 2015-11-23 12:32:33 +0000

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.

  1. Is it possible to not create new session but rather "reuse" the old session?
  2. 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
edit retag flag offensive close merge delete

Comments

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 gravatar imageMichael Rose ( 2015-11-23 08:48:51 +0000 )edit

@Michael Rose loginctl lists both sessions - the one I just exited, and the new one

LordFazole gravatar imageLordFazole ( 2015-11-23 11:37:55 +0000 )edit