Detecting dbus session

Alexander Larsson alexl at redhat.com
Mon Oct 29 09:51:29 UTC 2007


On Sun, 2007-10-28 at 17:02 -0400, Dan Williams wrote:
> On Sun, 2007-10-28 at 07:53 -0400, Jesse Keating wrote:
> > On Sun, 28 Oct 2007 10:10:28 +0100
> > Alexander Boström <abo at kth.se> wrote:
> > 
> > > sön 2007-10-28 klockan 01:10 -0400 skrev Dan Williams:
> > > > This sounds pretty wrong; root isn't supposed to know about the
> > > > session
> > > > bus, and you're going to have a very hard time finding out the
> > > > address of some random user session bus by design.   
> > > 
> > > Yup. And a user might have multiple sessions on a single computer.
> > > Think multiple logins to the guest account, or one log in through GDM
> > > and one session established via ssh. Stuff like that happens.
> > 
> > If this is the case, then wouldn't it make sense to have a
> > NetworkManagerDispatcher option to run things in the active session?
> 
> Except for the fact that as root, NMD can't find out the session bus
> address, nor should it be able to.

Can't something in the desktop connect to the session bus and get a
callback when a dispatch happens there, which it then proxies to a list
of session bus dispatchers.




More information about the desktop mailing list