![]() |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
Quote:
Code:
Exec=evince |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
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). |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
I had only inspected dpkg -L evince, not evince-common, so I missed
/usr/share/dbus-1/services/evince.service Code:
[D-BUS Service] Btw, the Maemo port of evince is great - I'm just sorely missing postscript support. |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Apologies if I'm misunderstanding you. I don't use Easy Debian so I'm unfamilar with its workings, but I believe you'd have to go through DBus Switchboard and get it to run Easy Debian Evince as the script wouldn't know of recieving arguments via D-Bus, which is part of how "associations" work in Maemo. Wow, reading that, I realise I bring nothing new... again, apologies.
Quote:
I should get to get to updating it though and making some interface changes. I think moving the contents list to a HildonTouchSelector would be nice... |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
Dbus-switchboard is in fact working for the Easy Debian applications. Only trouble is that it depends on explicit file types. |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
|
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
from gnome import gnomevfs print "%s" % gnomevfs.get_mime_type("/home/user/MyDocs/treeview-tutorial.pdf") Python also has a standard mimetypes module if an external dependency is not your thing. (Sorry it's not got CODE tags around it, but my JS is disabled in Tear and the symbol input fails to come up if the clipboard is populated) |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
|
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
Back to the problem, an interim solution could be make dbus-switchboard ask for a manual xref when it can't find a known extension. |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
I find it interesting that Maemo pretends to use the /etc/gnome/defaults.list file but it doesn't really, it still uses the /usr/share/applications/defaults.list ...
I find it interesting, too, that I copy the original file to a safe location, and then copy it back in my postrm file. But how is it that the file that my postrm script copies back upon removal of dbus-switchboard is different than the file it was supposedly linked to? |
All times are GMT. The time now is 12:14. |
vBulletin® Version 3.8.8