Brian Cameron wrote: >> I have an app that wants to create a text window in another session (to >> communicate an event to a user). zenity seems like the best tool for >> this purpose these days. >> >> However, even if I open up Xsecurity from the remote session to my app, >> using the --display option with zenity doesn't work. No errors, just >> fails to perform the specified operation. >> >> OTOH, if I add DBUS_SESSION_BUS_ADDRESS and WINDOWID from the target >> session into zenity's environment it works. > Note that GConf now uses D-Bus, so any GNOME program which uses GConf > for loading or saving configuration data needs D-Bus in order to run. > You can also run such programs like this: > > $ dbus-launch --exit-with-session (cmd) > > So, you should not need to set DBUS_SESSION_BUS_ADDRESS if you start > programs this way.
If I additionally set WINDOWID in the environment to a value set in a gnome-terminal in the target session then this works, thanks. But without WINDOWID set it still silently fails to work. Any clue as to why WINDOWID needs to be set? -Bob
