maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Tear 0.3.1 - a would be beta WebKit based browser (https://talk.maemo.org/showthread.php?t=28539)

Bundyo 2009-12-10 06:01

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
Ctrl+Enter should do it.
Fn+Shift should get you in Scroll lock (selection) mode.

sierrafoxtrot 2009-12-10 11:31

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
brilliant! thanks bundyo. hey is there any documentation for the maemo5 version of tear? btw, great work :)

steven676 2009-12-10 11:55

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
2 Attachment(s)
I'm pleased to announce version 2.1 of browser-proxy, a script which lets you use Tear (or other alternative browsers) as the default browser on Maemo devices. With xiojason's agreement, I'll be taking over as the primary maintainer from now on; many thanks to him for his work on this so far!

The script itself can be downloaded from
http://xio.com/maemo/browser-proxy.txt, or you can use the Debian package (browser-proxy_2.1-1.deb) attached to this post. Installing the Debian package will take care of installing and setting up the script for you; if you want to install manually, see the instructions in xiojason's original post.

The headline change is the new configuration file. browser-proxy will look for /home/user/.config/browser-proxy on startup, and if found will load its configuration from that file. The format is simple:
Code:

# This is a comment
# continuous_mode: 0 -- close after handling a request; 1 -- run
# continuously in the background
continuous_mode = 1
# default_browser: "tear", "microb", "fennec", "midori", or "other"
default_browser = "tear"
# other_browser_cmd: If default browser is "other", what program
# to run (%s will be replaced by URI)
#other_browser_cmd = "some_browser %s"

If there's no config file found, the script will use its built-in defaults (continuous_mode = 0, default_browser = "tear"). When running in continuous mode, you can get the script to reread its config file by sending it SIGHUP (kill -HUP pid).

(If you've been using the patches I posted earlier on top of 2.0, there is one significant change to the config file: the URL that replaces the %s in other_browser_cmd is now automatically quoted, so you no longer should quote %s in the other_browser_cmd string.)

Changes in this release:
  • The script now supports using a configuration file (see above) -- no need to edit the script to configure it now.
  • Out-of-the-box support for launching Fennec and Midori.
  • Add the ability to launch browsers other than those directly supported in the script (see above).
  • Changes to support a wrapper script replacing /usr/bin/browser.

Changes to the Debian packaging in this release:
  • Add a wrapper script replacing /usr/bin/browser, to ensure that launching MicroB via /usr/bin/browser always works.
  • Conflict with the proposed fennec-dbus-proxy (see https://bugzilla.mozilla.org/show_bug.cgi?id=499904); the two do roughly the same thing and probably shouldn't be co-installed.

Source for the Debian package (.orig.tar.gz, .dsc, .diff.gz) is contained in the attached tarball.

Future directions:
  • I'm working on getting a Garage project set up to host the code.
  • A configuration UI; it looks like if we want a control panel applet, it's going to have to be written in C? Thoughts? Comments on what it should look like?
  • I have no idea whether this works at all on Fremantle, though my suspicion is that it wouldn't take much work to get it working there. Reports/patches welcome if you're adventurous.
  • Once we have a UI, get this into extras where more people will find it.

EDIT: fix a link

munky261 2009-12-10 14:40

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
I installed this and /home/user/.config/browser-proxy is not present. It opens tear when links are clicked just fine. What do I need to do to change it to make it open fennec?

steven676 2009-12-10 22:20

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
Quote:

Originally Posted by munky261 (Post 420947)
I installed this and /home/user/.config/browser-proxy is not present. It opens tear when links are clicked just fine. What do I need to do to change it to make it open fennec?

There's no config file by default -- if the config file isn't found, the script uses its built-in defaults.

To make the config file, you can create it with your favorite text editor, adding the line
Code:

default_browser = "fennec"
If "favorite text editor" doesn't mean anything to you, try this from an xterm:
Code:

$ cat > /home/user/.config/browser-proxy <<EOF
default_browser="fennec"
EOF

(where "$" represents the command prompt, not something you type).

munky261 2009-12-10 22:28

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
Awesome, that worked perfectly. Thanks alot! I still use tear for all my general browsing, but seeing as how it wont let me log into usatoday.com or nytimes.com thats what Im using fennec for so when I click on links in my rss.

GeraldKo 2009-12-11 19:25

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
Quote:

Originally Posted by munky261 (Post 421751)
Awesome, that worked perfectly. Thanks alot! I still use tear for all my general browsing, but seeing as how it wont let me log into usatoday.com or nytimes.com thats what Im using fennec for so when I click on links in my rss.

I'm always logged into nytimes.com (though not using rss feed if that matters)

GeraldKo 2009-12-11 19:25

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
Quote:

Originally Posted by munky261 (Post 421751)
Awesome, that worked perfectly. Thanks alot! I still use tear for all my general browsing, but seeing as how it wont let me log into usatoday.com or nytimes.com thats what Im using fennec for so when I click on links in my rss.

I'm always logged into nytimes.com (though not using rss feed if that matters) in tear without problem.

fpp 2009-12-11 20:13

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
Hmm... do we have Tear for Fremantle, yet ? The new MicroB on the N900 is better than the old one, but definitely quirky and irritating at times...

munky261 2009-12-12 03:25

Re: Tear 0.3.1 - a would be beta WebKit based browser
 
Oh GeraldKo, thanks for that link in another post about the newer version of the yellownotes applet, I didnt even know it existed.


All times are GMT. The time now is 22:07.

vBulletin® Version 3.8.8