maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Tear 0.3 - Simple WebKit browser, now with Dashboard (https://talk.maemo.org/showthread.php?t=26475)

Bundyo 2009-04-10 18:19

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Sho (Post 278857)
I notice there's a "Port Tear" task listed in here, so it might be a good idea to get together to avoid duplicated efforts.

Bundyo, anything about the dbus-switchboard thing above? :)

Its partially possible as discussed previously - apparently most Nokia software is directly opening the browser with dbus and not relying on mime types. Probably other programs do the same thing.

Bundyo 2009-04-10 18:24

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Thesandlord (Post 278852)
Maybe this is a bug. On the website csusms.com, I can't type in the full account name, only 5 digits. MicroB works fine.

Looks like a bug - html maxlength atribute is subtracted by 2.

TrueJournals 2009-04-10 20:15

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Sho (Post 278804)
Could anyone write a little how-to on how to make Tear the default browser using dbus-switchboard? To someone not used to its workflow, it's a fairly daunting enterprise. I'd really like links in Pidgin IM conversations to open in Tear, as well as searches from the search home applet.

Not sure about the search home applet, but for pidgin, go to preferences, the browser tab, choose "Manual", and type /usr/bin/tear %s in the "manual" text box.

Sho 2009-04-10 21:02

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 278858)
Its partially possible as discussed previously - apparently most Nokia software is directly opening the browser with dbus and not relying on mime types. Probably other programs do the same thing.

Yup, and as I understand it, the purpose of dbus-switchboard is to intercept these calls and reroute them to more useful handlers, such as Tear. However, the previous mentions of dbus-switchboard in this thread seem to only refer to people wondering how to do it, and the same question has come up and gone unanswered in switchboard's own thread as well. So far you seem to be the only one who knows how to do it - could you share?

@TrueJournals: Ah, you rock! Thanks, that already takes care of 85% of my external link opening. Should've looked more carefully!

Bundyo 2009-04-10 21:11

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
You can get Tear to open a link using two ways:
Code:

dbus-send --session --type=method_call --dest=com.nokia.Tear /com/nokia/tear com.nokia.Tear.OpenAddress string:"http://maemo.org"
and

Code:

tear url
However the first one won't start a new browser if there isn't one started, while the second will. I'm not using dbus-switchboard, I'm only telling what I read in this thread. Let me check.

One piece:
http://www.internettablettalk.com/fo...ard#post269960
Second piece:
http://www.internettablettalk.com/fo...027#post274027

And that's about all I can find. I ran dbus-switchboard and customized some things but didn't succeed in getting anything to run in Tear.

daperl 2009-04-10 21:36

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Sho (Post 278891)
the previous mentions of dbus-switchboard in this thread seem to only refer to people wondering how to do it

I'm not sure how deep your interest goes, but you might find this diagram and the surrounding text informative.

TrueJournals 2009-04-10 21:48

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Hmm, I'm seeing a problem here... The dbus method that the browser uses is called new_window (I believe). Since tear uses OpenAddress (and probably doesn't respond to new_window), applications would call tear with new_window, and tear would just open and ignore the address.

Haven't fact-checked/tested any of this, so feel free to correct me.

Sho 2009-04-10 22:52

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by daperl (Post 278894)
I'm not sure how deep your interest goes, but you might find this diagram and the surrounding text informative.

Thanks, that's rather interesting in fact.

qwerty12 2009-04-11 08:20

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 278854)
I'm planning to get it running on Mer, but hadn't talked with anyone yet and there's nothing set in stone.

We all would love Tear. Stskeeps uploaded your webkit from Extras and it built for x86 only :/

Jaykie 2009-04-11 08:26

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 278859)
Looks like a bug - html maxlength atribute is subtracted by 2.

I noticed the same thing in this finnish onlinebank http://www.op.fi
Webkit engine (both in Tear and Nokia browser) only allows you to type in 2 characters in password (Salasana) field. Microb working just fine.


All times are GMT. The time now is 20:34.

vBulletin® Version 3.8.8