Seeing the session bus as another user

David Zeuthen david at fubar.dk
Tue Mar 6 19:12:02 PST 2007


On Wed, 2007-03-07 at 02:44 +0000, Stuart Langridge wrote:
> I'd like PHP scripts on my machine, running as www-data, to be able to
> display notifications on my desktop (since someone mentioned that they
> do a similar trick with Growl on OS X:
> http://www.aquarionics.com/article/name/Debugging_Ajax and it sounded
> useful).

I'm pretty sure that programs outside a session should never have access
to the session bus as that would have severe security implications.
Instead, I think what you want to do is to make PHP emit signals on the
system bus (you don't even have to own the service all the time) and
then your client in the desktop session can pick those up and display
notifications.

      David





More information about the dbus mailing list