Sorry for taking so much time to reply.

My app has a .desktop file, but, what do you mean about "install a desktop file"? Is not enough to copy the file to /usr/share/applications?

I had already changed the mimetipes of my app and this doesn't works.

Thanks for your help!

2013/4/8 Matthias Clasen <>
On Mon, 2013-04-08 at 18:00 +0200, Víctor Fernández wrote:
> Hello. I'm developing an application for desktop which consist on
> digital treatment of images. The idea is not to open the terminal to
> launch the program, but there's a little problem: I don't know how
> Nautilus know that .jpg (or .png) files can be opened with my program,
> and what can I do to get this.

Install a desktop file for your application, and add a MimeType= line to
it, listing the mimetypes your application can handle.

/usr/share/applications/gimp.desktop for inspiration

desktop mailing list