loginctl terminate-session "" fails

Bug #2076294 reported by John Cobb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
meta-gnome3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have been experimenting with wayfire lately and in the course of that I started to use loginctl terminate-session "" as a way of loging out. In wayfire this works fine. Out of curiosity I also used it to attempt to logout from a gnome session and it fails with "Failed to issue method call: Caller does not belong to any known session." I also observed that XDG_SESSION_ID was not set. (Whereas it was in the wayfire session). I don't know if the missing variable is the cause of the problem or merely a symptom. I tried both xorg and the gnome version of wayland but the symptoms were the same.

There is clearly no serious functional problem with loginctl, one can see the session numbers and terminate by explicitly using a number. It just makes it harder to reliably identify ones specific session. I cannot claim this is a bug that inconveniences me. On the other hand idiosyncrasies of this sort waste peoples time and are best eliminated.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome (not installed)
ProcVersionSignature: Ubuntu 6.8.0-39.39-generic 6.8.8
Uname: Linux 6.8.0-39-generic x86_64
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Aug 7 22:37:17 2024
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: meta-gnome3
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
John Cobb (jccobb) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.