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)

daperl 2009-03-07 16:54

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

Originally Posted by tso (Post 269623)
if there are dbus messages, then maybe dbus-switchboard can be poked into handling it?

They're both just wrapped-up stand-alone programs shared libraries; nothing no one but qwerty12 should be the wiser.

EDIT: see above

Much thanks to qwerty12: Binary Officer, badge #012

qwerty12 2009-03-07 17:16

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

Originally Posted by daperl (Post 269622)
If I were a hacker and I wanted to play around, the first thing I would do is make a cp -a of /usr/bin/browser.launch to browser.launch.orig. Then I would make sure that my new browser could take an url as a command-line argument. I would then copy my new browser to /usr/bin/browser.launch and see if that worked. If that fails, maybe I would then do a

strings browser.launch.orig | sort | less

to see what that reveals. It seems to reveal a few things. I would guess there might be one or two dbus messages to catch.

Something similar could probably be done with bookmark.launch.

While your idea sounds good and correct, you'll want to replace browser instead. browser.launch is a shared "library" that maemo-invoker runs (/usr/bin/browser is a symlink to /usr/bin/maemo-invoker) because it's built to use maemo-launcher which preloads gtk stuff and is said to make a gtk program launch faster.

Snoshrk 2009-03-07 18:05

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

Originally Posted by Snoshrk (Post 269605)
Hmmm. I thought I copied and pasted.... but at this point I don't really remember. I'll re-try typing it directly:)

Update: looks like the decongestants hit me harder than I thought...

file:///media/.../bookmarks.html worked!

Thanks

daperl 2009-03-07 18:09

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

Originally Posted by qwerty12 (Post 269629)
While your idea sounds good and correct, you'll want to replace browser instead. browser.launch is a shared "library" that maemo-invoker runs (/usr/bin/browser is a symlink to /usr/bin/maemo-invoker) because it's built to use maemo-launcher which preloads gtk stuff and is said to make a gtk program launch faster.

Oh, yeah, that! I've only done a statusbar thingy, but I think the resultant .so files are just a switch when building. I think... If so, then I also think you just have to put it in the proper /usr/lib/hildon-... directory. Anyway, thanks for setting me straight.

But because of the above, I still would want to change "browser.launch" and leave "browser" alone 'cause I want to get all that launcher stuff for free. Right?

Maybe I should do more checking and less thinking...

qwerty12 2009-03-07 18:17

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

Originally Posted by daperl (Post 269640)
But because of the above, I still would want to change "browser.launch" and leave "browser" alone 'cause I want to get all that launcher stuff for free. Right?

The application has to be built for maemo-launcher (not terribly experienced on this - I only have ever modified one program to be compatible with maemo-launcher) specifically; so replacing browser.launch isn't likely to work because maemo-invoker expects a shared library and you aren't gonna get a GTK speed increase on a script :)

daperl 2009-03-07 18:30

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

Originally Posted by qwerty12 (Post 269643)
The application has to be built for maemo-launcher (not terribly experienced on this - I only have ever modified one program to be compatible with maemo-launcher) specifically; so replacing browser.launch isn't likely to work because maemo-invoker expects a shared library and you aren't gonna get a GTK speed increase on a script :)

That's what I meant. Build a shared library. Like the ones that "Hello World" spits out. But a general wrapper for script invocation is a great idea. Or maybe just a Python invoker wrapper. Isn't that kind of what "osso_games_startup.launch" is? Or am I missing your/the point entirely?

tso 2009-03-07 23:39

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
just had two things show up...

1. to paste something into a text area, i had to use the long tap menu. the paste option of the osk didnt work (seems to work in the full screen one tho. bu that keyboard has its own issues).

2. sometimes the dashboard comes up empty when opening a new window using the + button.

debudebu 2009-03-08 14:31

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
hey, you probably know this, but some link buttons on facebook don't work in tear, such as the 'post' button for posting a message to someone's wall. also, the double tap, drag to select text only selects one word, and it won't copy after being selected.
great browser. my tablet feels new again.

Bundyo 2009-03-08 14:35

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

Originally Posted by debudebu (Post 269794)
hey, you probably know this, but some link buttons on facebook don't work in tear, such as the 'post' button for posting a message to someone's wall. also, the double tap, drag to select text only selects one word, and it won't copy after being selected.
great browser. my tablet feels new again.

Selection in Tear is done by holding down the menu key and just dragging. Actually while the menu button is down, the kinetik scrolling is off so you might fix something else this way :)

meizirkki 2009-03-08 14:38

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
when i try to edit maemo wiki, tear asks me if i want to download something like php=??=bla09, when i press the save button


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

vBulletin® Version 3.8.8