How to list all active sessions in Gnome shell

Viewed 4255

(System: Ubuntu 17.04 x64, official Gnome flavor, GNOME Shell 3.24.2 Wayland)

I have been experimenting with Gnome Shell extensions and some of them cause the session to crash. I have noticed that sometimes just a new session is generated as processes from the previous session are still active (using ps).

Question: What is the command to view all Gnome sessions?

(Follow up question) Is there a way to dump the current session and 'join' another active session?

1 Answers

Gnome has a tool to manage concurrent sessions:

loginctl

This tool list sessions:

SESSION  UID USER  SEAT  TTY 
    173 1000 jehon seat0 tty2

1 sessions listed.

The tool also have a "kill session" utility:

loginctl terminate-session 173
Related