Bug#1040920: Acknowledgement (gnome-flashback: Gnome flashback unsets XDG_SESSION_ID)

Alberts Muktupāvels alberts.muktupavels at gmail.com
Mon Jul 17 21:02:48 BST 2023


Can not you get session id from logind manager using
/org/freedesktop/login1/session/auto path?

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

On Sun, Jul 16, 2023 at 2:27 PM Nikolaus Rath <nikolaus at rath.org> wrote:

> retitle 1040920 "Gnome flashback breaks out of logind session"
> thanks
>
> 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).
>
> In other desktop environments (vanilla i3 as well as regular Gnome), the
> desktop environment is correctly associated with a logind session:
>
> nikratio at vostro ~> dbus-send --system --print-reply
> --dest=org.freedesktop.login1 /org/freedesktop/login1
> org.freedesktop.login1.Manager.GetSessionByPID uint32:$fish_pid
> method return time=1689506142.664977 sender=:1.6 -> destination=:1.1126
> serial=2461 reply_serial=2
>    object path "/org/freedesktop/login1/session/_342"
>
> When running Gnome Flashback, however:
>
> ikratio at vostro ~> dbus-send --system --print-reply
> --dest=org.freedesktop.login1 /org/freedesktop/login1
> org.freedesktop.login1.Manager.GetSessionByPID uint32:$fish_pid
> Error org.freedesktop.login1.NoSessionForPID: PID 858156 does not belong
> to any known session
>
>
> I don't think this is intentional.. or is it?
>
> Best,
> -Nikolaus
>
>

-- 
Alberts Muktupāvels
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20230717/4a1454fe/attachment.htm>


More information about the pkg-gnome-maintainers mailing list