![]() |
Re: Understanding Maemo Mime handling
hmm.. nadda. I can run dbus-switchboard as user but, of course, nothing happens. I have rewritten and tested call.sh to take tel and sip prefixes and strip them. I have updated the following in uri-action-default.list
sip=dbus-switchboard.desktop tel=dbus-switchboard.desktop and this in the .desktop file X-Osso-URI-Actions=sip;tel;mms [X-Osso-URI-Action-Open] Method=mime_open Name=uri_link_play TranslationDomain=osso-uri [X-Osso-URI-Action Handler sip] Method=mime_open Name=uri_link_make_call TranslationDomain=osso-uri [X-Osso-URI-Action Handler tel] Method=mime_open Name=uri_link_make_call TranslationDomain=osso-uri and the mods to the app itself are.. if method.find("make_call") <> -1: os.system("/usr/bin/call " + arguments) print "placing call:" return I figured this would be easier than find'ing on the argstr. When I try and open a tel: link in browser I get unsupported type and if I try sip: I get contacts despite the fact that I removed the sip information from those desktop files. |
Re: Understanding Maemo Mime handling
Leaving dbus-switchboard running in the forground only prints the started message, like it's not getting called for sip or tel uri's
|
Re: Understanding Maemo Mime handling
i thought you got it working without dbus-switchboard. your voip is nokia app right?
Edit : ok i forgot you have call.sh script.... make that hildon-dbus-switchboard.desktop in the uri-actions-defaults.list file possibly run (as root) : update-mime-database /usr/share/mime and reboot? oh yea and if you modify the dbus-switchboard.py file, kill all running ppython processes... it stays loaded i guess as single osso service if not already running (in xterm) |
Re: Understanding Maemo Mime handling
Adding hildon- made all the difference, now it's getting called and I'm getting somewhere.
The other oops that we missed is that when I copied and pasted the code block I missed that you had it as "/usr/bin/call " + arguments rather than argstr. So now it's running, but I would like to see about cleaning it up some. update: Just tested iphone.facebook.com and clicking on the Call 444.555.1212 button works! Now for more world domination.:cool: |
Re: Understanding Maemo Mime handling
Quote:
MaemoN00B gets credit for finding the magic needed to add hildon- before the desktop file :) |
Re: Understanding Maemo Mime handling
Quote:
[X-Osso-URI-Action Handler tel] Method=call_app_application Name=uri_link_make_call TranslationDomain=osso-uri Then you could if method.find("call_app_") <> -1: app = method.replace("call_app_","") os.system( app + " " argstr ) or something like that. Embed the name of the app to call into the URL handler call. |
Re: Understanding Maemo Mime handling
i think i will add new column to xref file for specifying protocols
like: .torrent, , Transmission .wmv, mms, MPlayer none, tel, BrontidesScript and make user edit uri-action-defaults that keeps it generic and simple for future protocols, right? I will update installer tonight (gmt-5 time) |
Re: Understanding Maemo Mime handling
Just let me know and I'll give it a whirl.
|
Re: Understanding Maemo Mime handling
Updated installer to support protocol handlers (like tel: )
Version 1.1.2 is here : http://wardenclyffetower.com/MaemoFi...-1.1.3.all.deb (you might need to kill any python2.5 task or reboot to make sure the new python file is loaded instead of leftover previously launched dbus-switchboard) ok in theory this should work with tel: if you just make sure the ur-action-defaults.list has line reading : Code:
tel-hildon-dbus-switchboard.desktop I do know that after adding support for those protocols, it didnt break my original filetypes :) I added a column to the xref file to support protocol detection (for when you cant rely on file extension) so the /home/user/.dbus-switch-xref.cfg now looks like : Code:
.torrent,Transmission, Code:
BrontideTel,cli,call.sh %params% I'm trying to affect as few files as possible so that no 'magic' is introduced :) Later on i may look into ways of providing shortcuts for auto-configuring (if possible) |
Re: Understanding Maemo Mime handling
Quote:
Most excellent application. |
All times are GMT. The time now is 20:50. |
vBulletin® Version 3.8.8