GIO application integration with Nautilus

View: New views
2 Messages — Rating Filter:   Alert me  

GIO application integration with Nautilus

by Gravis-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've written a GTK+ application that uses the GIO API for file IO
operations and it works fine with Nautilus when opening files on a local
filesystem.  The problem I've run into is that after adding the app to
the list of apps to open a file type with (eg jpeg image files) it will
not allow me to open files (doesnt appear on the list of available
applications) in Nautilus in my remote filesystems (eg sftp virtually
mounted file system) and does nothing when I use "Open With Other
Application...".  I have no problems opening files via CLI (eg appname
sftp://user@.../dir/image.jpg).

Does anyone know how to solve this problem?  Is there any documentation
on how to add a GIO application to Nautilus for opening remote
filesystems?

I've asked the Nautilus mailing list but they dont know anything about
it.


--
Gravis <gnome-hackers@...>

_______________________________________________
gnome-hackers mailing list
gnome-hackers@...
http://mail.gnome.org/mailman/listinfo/gnome-hackers

Re: GIO application integration with Nautilus

by Matthias Clasen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, May 11, 2009 at 8:41 AM, Gravis <gnome-hackers@...> wrote:

> Does anyone know how to solve this problem?  Is there any documentation
> on how to add a GIO application to Nautilus for opening remote
> filesystems?
>

I'm not sure I fully understood what problem you have, but the way to
inform the desktop about the capabilities of your application is to
set the
MimeType key in your desktop file appropriately, and use an Exec line
that has a %f or %u in it.
_______________________________________________
gnome-hackers mailing list
gnome-hackers@...
http://mail.gnome.org/mailman/listinfo/gnome-hackers