View Single Post
xiojason's Avatar
Posts: 36 | Thanked: 74 times | Joined on Jun 2009 @ Seattle, WA, USA
#604
Originally Posted by debernardis View Post
This should be optional imho, and if you could make two versions, one with, one without the feature, or encapsulate the related code so that I could comment it out, I'd be happy.
I prefer having two icons in my personal menu, one which sets tear as default, one for microb, so that I can decide each time which browser I want to activate, and also keep both open. Memory doesn't seem to be much an issue for my use cases.
You still will have two icons in your menu for browsers: "Web" for MicroB and Tear.

Unfortunately, it's not possible to pick which browser to use by default if MicroB is open. When MicroB is open, it receives all of the open-link messages from other applications and browser-proxy never sees the messages to relay to Tear.

If you install browser-proxy, it works like this:
  • Click a link in some application with no browser open: browser-proxy receives the message and opens a Tear Dashboard window and then another Tear window with the link.
  • Click a link in some application with only Tear open: browser-proxy receives the message and opens a new Tear window with the link.
  • Open "Web" from the launcher: browser-proxy receives the message and starts browserd (if it's not already running) and then launches MicroB.
  • Click a link in some application with only MicroB open: MicroB receives the message and opens the link. browser-proxy never sees the message because MicroB grabbed it.
  • Click a link in some application with both MicroB and Tear open: MicroB receives the message and opens the link. browser-proxy never sees the message because MicroB grabbed it.

In a way, with browser-proxy installed it works sort of like you want: your default browser is whichever browser is running (when only one browser is running). With two caveats: First being that when no browser is running, the default is Tear.[1] The second being that when both browsers are running, the default is MicroB.[2]

[1] Of course you can change the default browser used when no browser is running by putting /usr/share/dbus-1/com.nokia.osso_browser.service back to its original state of "Exec=/usr/bin/browser".
[2] There is no way around using MicroB by default when both browsers are open without hacking some binaries, AFAIK.
 

The Following 3 Users Say Thank You to xiojason For This Useful Post: