On 03/ 3/10 10:17 PM, Harry Lu wrote: > On Wed, 2010-03-03 at 22:01 -0600, Shawn Walker wrote: >> Greetings, >> >> I was wondering if it was opensolaris-specific that the >> org.gnome.Nautilus dbus service doesn't accept "http" URIs for the >> "open_browser" command. It won't accept them since "they're not a folder." >> >> Is there some other dbus-accessible service in GNOME that can be used to >> either ask FireFox to open a link, or to ask GNOME itself? > > I am not sure whether GNOME have such a D-Bus service, but at least you > could have the following options: > > 1. Use gnome-open(1) command line.
Which doesn't help for an application already running as a privileged user. > 2. Use gnome_url_show () C API. > 3. Use gnome.url_show python API. gnome.url_show() would launch the browser as root since this is an application that uses gksu; not desirable. The goal here is to open the link as the original user that gksu'd. Cheers, -- Shawn Walker
