Re: Help: connect to different dbus session addresses
Zeeshan Ali Khan <[email protected]> Mon, 28 Nov 2022 17:00:53 +0100
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <CAAa3hFNanNpLS+dPd033Bjuc0=8mzAOvFZSup3D0MJGZBPwJgw@mail.gmail.com> |
Hi Joan, > This daemon has to connect also to different dbus sessions of different > users to use org.freedestkop.systemd1.Manager interface to start a unit > service on each session. Here I am in the trouble because the daemon > can't connect to other user dbus sessions if it is running as gdm user. Why not have a session service setup to start automatically on each session start? In geoclue2 we solved a similar problem by running our main service on the system bus as a special system user (or root) and a per-session/user agent service and have them talk to each other. The agent start on every user session and register itself with the system service.