View Single Post
rebhana's Avatar
Posts: 579 | Thanked: 471 times | Joined on Jan 2010 @ Austria
#221
Originally Posted by qole View Post
dbus-switchboard currently only handles files with file extensions.

The simple solution here is to download files and add extensions, then use the file manager to open the files with dbus-switchboard.
Since I need that so often, this is at least no good for me.

The more complex, but far better, solution is to figure out how to pass the detected mime type to dbus-switchboard and use that to determine the handler, rather than the file extension.
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?
__________________
Need more apps for the N900? Check out Qole's Easy Debian and read the wiki!
My Easy Debian installation log