![]() |
Re: Understanding Maemo Mime handling
I have updated dbus-switchboard to version 1.1.0 which you can download here :
http://wardenclyffetower.com/MaemoFi...-1.1.3.all.deb This release : Adds two new cfg files in /home/user Adds qole's custom asx handler Adds evince and comix (neither tested) New config files : /home/user/.dbus-switch-apps.cfg : this contains registry of all dbus-switchboard apps Code:
MPlayer,cli,/usr/bin/mplayer %params% Code:
.torrent,Transmission If you try to associate a mime type with no previous entry in defaults.list and you want to use that association from file manager (and not web browser) then there might be another master-list mime config file it needs to be added to. Transmission (application/x-bittorrent) works because the web server tells browser what the mime type is... but that info is lost if you save the torrent and open from file manager... so probably another config file for those cases. The .dbus-switch-apps.cfg file will be the 'master list' with any possible apps we might want to associate. Experiment with these files and then let me know of any new apps or 'profiles' you want added... so for like mplayer maybe you want multiple profiles with different launch settings.... mplayerStreaming, mplayerMADaudio, etc The .dbus-switch-xref.cfg will be custom per user and used in future by a UI application to choose which app (if multiple choices) the file should be sent to. |
Re: Understanding Maemo Mime handling
WOW!
This sounds like the answer to my problem illustrated >>HERE<< If so, is there a step by step available to associate WMV files I encounter with the web browser so that MPlayer opens instead of media player? I'm sure it is in this thread somehow however, I'm slow like that... Perhaps a summary then? Where to find the file to edit. How to access it and edit it. What specific line should be edited with what specific new info. Thanks for your time, output, and eventual patience. :) |
Re: Understanding Maemo Mime handling
possibly... but doesnt seem to work at the moment so i need to research more
this seems different in that its not so much a mime type as a protocol type mms:// if i click on details it tells me no mime/type so i need to figure out how it determines who gets protocol handlers if anyone else knows feel free to chime in :) otherwise i will test more later |
Re: Understanding Maemo Mime handling
BDIFD ("Boy, Do I Feel Dumb"):
playlist formats (like .asx and .pls) are handled in mplayer. You just have to add the -playlist parameter in front of the %s. No fancy file parsing necessary. So you can scrap my custom .asx handler and make it just like .avi, just change it to Code:
mplayer -playlist %s .dbus-switch-apps.cfg, added the following line: Code:
MPlayer-playlist,cli,/usr/bin/mplayer -playlist %params% Code:
.pls,MPlayer-playlist |
Re: Understanding Maemo Mime handling
I copied the mms:// link from YoDude's TV Station website, and then opened a terminal and typed, "mplayer <pasted link>" and it played.
So the next test was to paste the mms:// link into the address bar of the browser and change the "mms://" to "http://". Now I get a dialog box that says "dbus-switchboard" handles this type, and when I click on "Open," mplayer plays the file. So, a quick and dirty fix is either a bookmarklet or greasemonkey script that changes all "mms://" links to "http://" links. Combine this with dbus-switchboard, and your problem is solved. Well, except for the fact that .wmv looks like crap on maemo-mplayer due to the error I mentioned above. Anyone want to write the javascript? |
Re: Understanding Maemo Mime handling
Quote:
So it sounds like for now, running dbus-switchboard, GreaseMonkey, and a yet to be written script is the way to go. Could a future change in dbus-switchboard also accomplish this? |
HOWTO Use Pipeline's DBus Mime shim
1 Attachment(s)
Ok, I wrote the Javascript, it works, so here's a sketchy HOWTO:
Before you start, you need:
EDIT: I uploaded my tiny script to userscripts.org. Click on the link above to install it. |
Re: Understanding Maemo Mime handling
Could I use this to call my custom call.sh for tel: links from microb? Sweet!
|
Re: Understanding Maemo Mime handling
Damn, looks like URI handling is similar, but different... any chance in getting the URI handler code into dbus-switcher? It would also alleviate the need to use greasemonkey for mms: as well ( if I'm seeing this right ).
|
Re: Understanding Maemo Mime handling
Pipeline, could you please add the mp_ui.desktop without the MimeType line to your .deb? I'm not as sure about the defaults.list file; I think it would be a good idea, but there may be side effects...
If those two files are updated with the .deb, then the user doesn't have to do anything except change the two config files in the home dir. The config files should probably have an example of a file type that is associated with the built-in Media Player, just so it is clear how to associate files to a hildonized, non-CLI app via dbus-switchboard. Quote:
|
All times are GMT. The time now is 20:18. |
vBulletin® Version 3.8.8