<div dir="ltr">Can not you get session id from logind manager using /org/freedesktop/login1/session/auto path?<div><br></div><div>dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1/session/auto org.freedesktop.DBus.Properties.Get string:org.freedesktop.login1.Session string:Id<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 16, 2023 at 2:27 PM Nikolaus Rath <<a href="mailto:nikolaus@rath.org">nikolaus@rath.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">retitle 1040920 "Gnome flashback breaks out of logind session"<br>
thanks<br>
<br>
Upon closer examination, the problem is not that GNome flashback unsets XDG_SESSION_ID, but that it breaks out of the active logind session (so unsetting the variable is, in some way, correct).<br>
<br>
In other desktop environments (vanilla i3 as well as regular Gnome), the desktop environment is correctly associated with a logind session:<br>
<br>
nikratio@vostro ~> dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.GetSessionByPID uint32:$fish_pid <br>
method return time=1689506142.664977 sender=:1.6 -> destination=:1.1126 serial=2461 reply_serial=2<br>
   object path "/org/freedesktop/login1/session/_342"<br>
<br>
When running Gnome Flashback, however:<br>
<br>
ikratio@vostro ~> dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.GetSessionByPID uint32:$fish_pid <br>
Error org.freedesktop.login1.NoSessionForPID: PID 858156 does not belong to any known session<br>
<br>
<br>
I don't think this is intentional.. or is it?<br>
<br>
Best,<br>
-Nikolaus<br>
<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Alberts Muktupāvels<br></div></div>