Re: libgnome: gnome-open.c

"Nickolay V. Shmyrev" <[email protected]>
Newsgroups gmane.comp.gnome.devel
Message-ID <[email protected]>
В Вск, 17/06/2007 в 17:32 +0200, Alp Özmert пишет:
> Wouter Bolsterlee <[email protected]> writes:
> 
> > 2007-06-17 klockan 14:23 skrev Alp Özmert:
> >> I came upon 'gnome-open' while looking for a way to make Emacs/Gnus
> >> call the application associated by Gnome as an external viewer for
> >> attached files.  The impediment is that I couldn't make gnome-open
> >> wait until the process finishes, neither did I have success with
> >> gnome_url_show().
> >> 
> >> I would be delighted by any given insight to this first-time gnome
> >> hacker to enable him to construct a blocking call to
> >> gnome_url_show().
> >
> > This is not really possible to do reliably. Many Gnome
> > applications are single instance apps (e.g. Evince). This means
> > that a second application instance will just pass through the
> > command line arguments (e.g. the filename to show) to the already
> > running applications, and quit immediately afterwards.
> 
> Is there a simple way to find the path to the associated
> application? For now that would be sufficient.
> 
> Regards,
> Alp Özmert

I suppose it's much easier to write your own little program which will
use gnomevfs in similar way like gnome-open does. In addition you can
suggest a patch to gnome-open to print this information.

gnome_vfs_mime_get_default_application_for_uri()

is the function you need.

_______________________________________________
gnome-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-devel-list
signature.asc (application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBGdZJfLCDh4YwOt9kRAlVeAJ0YJa1ybkASJ8SgT8RdrWUDa9VWdQCggnju
VBHIxDd6udQy5UDWskff6IQ=
=yZvH
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.