View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#222
Originally Posted by rebhana View Post
I would like to know how qwerty did it for evince. His evince.desktop file contains
Code:
Exec=evince
StartupNotify=true
Terminal=false
Type=Application
Icon=evince
X-Osso-Service=org.gnome.evince.ApplicationService
X-Osso-Type=application/x-executable
MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;application/x-dvi;application/x-bzdvi;application/x-gzdvi;image/vnd.djvu;image/tiff;application/x-cbr;application/x-cbz;application/x-cb7;image/*;application/vnd.sun.xml.impress;application/vnd.oasis.opendocument.presentation;
Could something like that be done for "debbie evince" as well?
I don't recall doing anything special for Evince. What I did do was add those entries to the desktop file, adding an XML describing the new types (dpkg -L evince / evince-common should pick it up) and adding an handler to Evince to open each file it recieves by name over D-Bus, which DBus Switchboard does.

I don't think you are passed the mimetype, but you are passed the full path which is enough to figure out the MIME type in your program (I think GnomeVFS has functions for this).
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post: