maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How to make a 3rd party browser the default browser? (https://talk.maemo.org/showthread.php?t=29815)

jukey 2009-06-23 09:59

How to make a 3rd party browser the default browser?
 
I want to switch from microb to an other browser (at the moment fennec is my favourite).

This means the other browser (for me: fennec) should open if I select a link in modest or mauku or the feed reader or wherever.

Is there any possibility to do this for all applications in a central place?

qwerty12 2009-06-23 10:02

Re: How to make a 3rd party browser the default browser?
 
Alas, no. Maemo does not have a central system for this so many apps just hardcode the usage of the default browser to open a link.

Stskeeps 2009-06-23 10:22

Re: How to make a 3rd party browser the default browser?
 
One way to go about this problem is by simply asking one of the many Nokia developers who are within the community and are actively discussing within the community - how we could eventually do it

qwerty12 2009-06-23 10:24

Re: How to make a 3rd party browser the default browser?
 
You can simply do it by changing what's inside the osso_rpc_async* or osso_rpc_run* functions of your favourite application. This assumes, however, that the program in question is open-source and the browser you wish to change to does not have broken DBUS methods.

jukey 2009-06-23 10:57

Re: How to make a 3rd party browser the default browser?
 
Quote:

Originally Posted by Stskeeps (Post 298893)
One way to go about this problem is by simply asking one of the many Nokia developers who are within the community and are actively discussing within the community - how we could eventually do it

Thank you for asking the right people at the right place! :)

I made a enhancement request in the fennec bug tracking system:

https://bugzilla.mozilla.org/show_bug.cgi?id=499904

Please feel free to comment and correct the entry.

mgoebel 2009-07-23 06:54

I'd like Mauku to open URLs in Midori instead of MicroB
 
Quote:

Originally Posted by qwerty12 (Post 298894)
You can simply do it by changing what's inside the osso_rpc_async* or osso_rpc_run* functions of your favourite application. This assumes, however, that the program in question is open-source and the browser you wish to change to does not have broken DBUS methods.

This sounds great. But how do I do this? I'd like Mauku to open URLs in Midori instead of MicroB.

jdarnell 2009-07-23 22:51

Re: How to make a 3rd party browser the default browser?
 
I'm also very interested in this. I wrote a small, rough script that uses dbus-launch to start it. Now I need to know how to implement it.

Code:

#!/bin/sh

dbus-launch midori "$*"

exit 0

Can anyone help us? Point us in the right direction?

@qwerty12 so I'm guessing that to modify osso_rpc_async* or osso_rpc_run* functions we have to get the source code for applications like osso_addressbook, modify it, compile it, and replace what we currently have? --yikes a little out of my leage

Bundyo 2009-07-24 04:44

Re: How to make a 3rd party browser the default browser?
 
Well, you can modify xiojason's script here, but use other means for opening the browser, not dbus. It is a startup proxy after all.
http://talk.maemo.org/showpost.php?p...&postcount=566

jdarnell 2009-07-25 03:52

Re: How to make a 3rd party browser the default browser?
 
Quote:

Originally Posted by Bundyo (Post 306361)
Well, you can modify xiojason's script here, but use other means for opening the browser, not dbus. It is a startup proxy after all.
http://talk.maemo.org/showpost.php?p...&postcount=566

Thats perfect! I have it instituted. I changed where it said "tear" for "midori" (as dumb as that sounds) and Midori will launch, but has no clue the arguments I sent it. I tried different things but I'm still lost.

Code:

        os.execl('/usr/bin/dbus-send',
            '/usr/bin/dbus-send', '--session', '--type=method_call',
            '--print-reply',
            '--dest=com.nokia.midori', '/com/nokia/midori',
            'com.nokia.midori.OpenAddress', 'string:%s' % uri)

Any suggestions? I've searched for hours here and on Google. Either I suck at searching or no ones wrote about that.

Bundyo 2009-07-25 06:19

Re: How to make a 3rd party browser the default browser?
 
Well, Midori probably can't be launched with DBus or if it can, then not with these arguments. Try running it with a simple commandline like

Code:

midori url
As far as the commandline help goes, you can probably launch it with several addresses or even with a javascript file.


All times are GMT. The time now is 15:59.

vBulletin® Version 3.8.8