![]() |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
OK, qwerty12's gnomevfs suggestion prints the correct mimetype for both a local PDF with no extension and Dr. Hawking's paper on the web.
So now to fundamentally rewrite dbus-switchboard to use mime types instead of extensions :) EDIT: I installed python-gnome2 and just did "import gnomevfs" |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
EDIT: After having studied the postinst, postrm, and dswitch-ini.sh scripts, I also don't understand how the symlink could have been broken by installing and deinstalling dbus-switchboard.:confused: |
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
New version in Extras-devel (1.2.13) has rudimentary, hackish support for mimetypes. If your file doesn't have a recognised file extension, it will try to match the file to a recognised mimetype.
I have added a new file, /home/user/.mimetypes/user-mimetypes.list which you must edit by hand. Find the mimetype in the incredibly long list (taken from my desktop Ubuntu defaults.list) and change the "none" to the name of the handler (from the Handlers list in the GUI). I have defined one mimetype as an example, application/pdf=Evince to show you how to do it (and to keep the invaluable rebhana as my betatester :)). If people express any interest in this approach, I could rewrite the app to use the mimetypes as the primary method, and then it could try file extensions as the backup. It's been good programming experience, anyway. |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
I cannot install it because of a conflict with "gnome-python" dependency.
|
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
New update conflicts with gnome/python and is unnstallable.
|
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
I'm uploading a new version due to a postinst error...
Should I switch to gnome-python as my dependency? python-gnome2 seemed so much cleaner to use... Can anyone tell me what package uses gnome-python? |
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
Quote:
Quote:
Sth. like: Quote:
Quote:
|
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
fmms uses gnome-python.
|
Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
I'll try qwerty12's suggestion to use either of the two packages.
And DaSilva is right, who cares about what other apps use gnome-python!? No man dare interfere with the mighty fmms! |
All times are GMT. The time now is 16:12. |
vBulletin® Version 3.8.8