webOS Nation Forums >  Homebrew >  webOS patches > [PATCH/SCRIPT] [3.0.4] Switch to Advanced Browser as Default OS Browser
[PATCH/SCRIPT] [3.0.4] Switch to Advanced Browser as Default OS Browser

  Reply
Like Tree2Likes

 
LinkBack Thread Tools Display Modes
Old 12/01/2011, 09:37 AM   #61 (permalink)
Member
 
grappler's Avatar
 
Join Date: Oct 2005
Posts: 780
Likes Received: 58
Thanks: 87
Thanked 162 Times in 112 Posts
Default

Installed the maklesoft-maintained patch via Preware, but doesn't work . . . Web launches every time. Suggestions?
grappler is offline   Reply With Quote
Old 12/01/2011, 09:49 AM   #62 (permalink)
Member
 
Join Date: Sep 2011
Posts: 48
Likes Received: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Default

grappler where you able to get it to install? I got errors just trying to install it. Maybe we need to start a new thread on that patch.
blake711 is offline   Reply With Quote
Old 12/03/2011, 10:41 AM   #63 (permalink)
Member
 
Join Date: Oct 2010
Posts: 5
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by LA6507 View Post
My bad! OK, I downloaded the script from my PC this time then transferred it over to the TP, chmodded it, then ran it and everything worked great using Executah. Great script, Thank you!!!
sorry I'm not really a very techy guy.... What do you mean by chmodding it, and how do you chmod?
jmahr1127 is offline   Reply With Quote
Old 12/03/2011, 11:17 AM   #64 (permalink)
Member
 
Join Date: May 2008
Posts: 56
Likes Received: 3
Thanks: 3
Thanked 23 Times in 11 Posts
Default

Quote:
Originally Posted by jmahr1127 View Post
sorry I'm not really a very techy guy.... What do you mean by chmodding it, and how do you chmod?
Chmod is a command that allows you to change PERMISSIONS on a file and in our case you want EXECUTE permissions. Anyway, just follow the instructions on the first page... it's the fourth bullet:

Quote:
PATCH/SCRIPT INSTALLATION
  • Somehow get the script onto the device.
    • You e-mail the script to yourself and SAVE the attachment, don't try to run it.
    • You can mount the device as a drive on the PC and place it right on the root of the device which is actually /media/internal.
    • Or you can use my latest-favorite method by uploading via the wonderful app called Wifi TP File Browser
  • Remove the TXT extension from the tail end of the filename... or keep as TXT, it does not really matter since Linux will run any file extension with execution permissions.
  • Once the script is inside of the /media/internal directory (for ease let's say it's here) you will need to modify its execution permissions by running:
  • chmod 777 /media/internal/JZ_default_browser_justtype_switch_0_4.sh
  • Execute the script via a shell command. This command can be run via Xecutah>XTerm or you can run it via Novaterm --- both methods described above:
  • sh /media/internal/JZ_default_browser_justtype_switch_0_4.sh
  • By executing the command above my script will begin. It will not do anything until you make your selection at the prompt.
  • When you upgrade this script or your version of Advanced Browser, it's probably best to re-activate the functionality again.
JZ SmartMort is offline   Reply With Quote
Old 12/03/2011, 12:08 PM   #65 (permalink)
Member
 
Join Date: Oct 2010
Posts: 5
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by JZ SmartMort View Post
Chmod is a command that allows you to change PERMISSIONS on a file and in our case you want EXECUTE permissions. Anyway, just follow the instructions on the first page... it's the fourth bullet:
Thanks for the Quick response! However, whenever I try to do this, it gives me the response:

/media/internal/JZ_default_browser_justtype_switch_0_4.sh: line 101: syntax error: unexpected "elif" (expecting "then")

Any advice? Should I just go in and manually change the text to "then"?
jmahr1127 is offline   Reply With Quote
Old 12/03/2011, 11:00 PM   #66 (permalink)
Member
 
Join Date: May 2008
Posts: 56
Likes Received: 3
Thanks: 3
Thanked 23 Times in 11 Posts
Default

Quote:
Originally Posted by jmahr1127 View Post
Thanks for the Quick response! However, whenever I try to do this, it gives me the response:

/media/internal/JZ_default_browser_justtype_switch_0_4.sh: line 101: syntax error: unexpected "elif" (expecting "then")

Any advice? Should I just go in and manually change the text to "then"?
Definitely do not do that because it will just create a headache for you... the error means that the shell thinks that THEN was not provided but it was on line 57...

Honestly, I'm not sure what the issue is but the only suggestion is to install Bourne Again Shell from Preware and try it after you've done that. I believe the double brackets e.g. if [[ $x=$y ]]; then

is what's killing the default shell but to be fair I uninstalled Bourne Again Shell to make sure my script is not dependent on it.

Thanks!
JZ SmartMort is offline   Reply With Quote
Old 12/03/2011, 11:11 PM   #67 (permalink)
Member
 
Join Date: Sep 2011
Posts: 7
Likes Received: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default

how about a patch via Preware for us less Learned people?
steve757 is offline   Reply With Quote
Old 12/03/2011, 11:14 PM   #68 (permalink)
Member
 
Join Date: May 2008
Posts: 56
Likes Received: 3
Thanks: 3
Thanked 23 Times in 11 Posts
Default

Quote:
Originally Posted by steve757 View Post
how about a patch via Preware for us less Learned people?
I doubt that you guys are any less learned but read this post from page 3 for the explanation: http://forums.precentral.net/webos-p...ml#post3248691
JZ SmartMort is offline   Reply With Quote
Old 12/04/2011, 12:02 PM   #69 (permalink)
Member
 
Join Date: Oct 2010
Posts: 5
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by JZ SmartMort View Post
Definitely do not do that because it will just create a headache for you... the error means that the shell thinks that THEN was not provided but it was on line 57...

Honestly, I'm not sure what the issue is but the only suggestion is to install Bourne Again Shell from Preware and try it after you've done that. I believe the double brackets e.g. if [[ $x=$y ]]; then

is what's killing the default shell but to be fair I uninstalled Bourne Again Shell to make sure my script is not dependent on it.

Thanks!
doesn't work any other Advice?
jmahr1127 is offline   Reply With Quote
Old 12/04/2011, 06:21 PM   #70 (permalink)
Member
 
Join Date: May 2008
Posts: 56
Likes Received: 3
Thanks: 3
Thanked 23 Times in 11 Posts
Default

Quote:
Originally Posted by jmahr1127 View Post
doesn't work any other Advice?
Not really... when it works for everyone except a single instance it must be that single instance that's different than the rest.

However, you can manually add this entry to the top of: /media/cryptofs/apps/usr/palm/applications/com.maklesoft.browser/appinfo.json

You want the top of yours to look like this:
Code:
{
"mimeTypes": [{ "urlPattern": "^https?:" },{ "mime": "text/html", "extension": "html" },{ "mime": "text/html", "extension": "htm" },{ "mime": "application/xhtml+xml", "extension": "xhtml" }],
Here's a screenshot of mine as well.
Attached Images
File Type: jpg vi_of_appinfojson.jpg (56.5 KB, 17 views) Email Attachment
JZ SmartMort is offline   Reply With Quote
Thanked By: jmahr1127
Old 12/04/2011, 10:56 PM   #71 (permalink)
Member
 
Join Date: Oct 2010
Posts: 5
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by JZ SmartMort View Post
Not really... when it works for everyone except a single instance it must be that single instance that's different than the rest.

However, you can manually add this entry to the top of: /media/cryptofs/apps/usr/palm/applications/com.maklesoft.browser/appinfo.json

You want the top of yours to look like this:
Code:
{
"mimeTypes": [{ "urlPattern": "^https?:" },{ "mime": "text/html", "extension": "html" },{ "mime": "text/html", "extension": "htm" },{ "mime": "application/xhtml+xml", "extension": "xhtml" }],
Here's a screenshot of mine as well.
Thank You! Links and everything all direct to Advanced Browser now! Just one problem though: I can't get justtype to use Advanced Browser

EDIT: I got justtype to use Advanced Browser by installing your previous patch Keep up the great work!

Last edited by jmahr1127; 12/04/2011 at 11:23 PM. Reason: I got justtype to use Advanced Browser by installing your previous patch :) Keep up the great work!
jmahr1127 is offline   Reply With Quote
Old 12/11/2011, 04:24 AM   #72 (permalink)
Member
 
Join Date: Sep 2011
Posts: 66
Likes Received: 32
Thanks: 3
Thanked 69 Times in 6 Posts
Default

Been ages since I used webos but isn't my method alot easier? Or doesn't it work any more or something?

Ramblings of a Closet Geek: Making Advanced Browser Default On TouchPad
PainToad is offline   Reply With Quote
Old 12/11/2011, 06:34 AM   #73 (permalink)
Member
 
Join Date: Sep 2011
Posts: 48
Likes Received: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by PainToad View Post
Been ages since I used webos but isn't my method alot easier? Or doesn't it work any more or something?

Ramblings of a Closet Geek: Making Advanced Browser Default On TouchPad
No there are posts at that link stating it broke at 3.0.4 that is why there is this new hack. Also posts in your thread on here about it being broke. There is now a patch in preware by the creator of advanced browser to make it default. I had issues installing it but it looks to be cleared up have used it a couple weeks without issue now.
blake711 is offline   Reply With Quote
Old 12/11/2011, 04:07 PM   #74 (permalink)
Member
 
Join Date: May 2008
Posts: 56
Likes Received: 3
Thanks: 3
Thanked 23 Times in 11 Posts
Default

Quote:
Originally Posted by PainToad View Post
Been ages since I used webos but isn't my method alot easier? Or doesn't it work any more or something?

Ramblings of a Closet Geek: Making Advanced Browser Default On TouchPad
Not in my opinion... following a bunch of directions vs. running a script... I'll choose script anyday for the sake of ease and lack of possible errors during the process.

I used to use the same method in my first 3 revisions of the script but then I found the magic of MIME types (which I have always been a fan of in the Windows world) and it's a flawless approach that ALLOWS YOU TO USE THE GUI to change your default programs.

More importantly when you use the method you quoted, have you tried to make any of Advanced Browser settings actually stick? Give that a shot and then let me know how cool my script it actually it's PatrickC's method, I just scripted it.

Thanks!
JZ SmartMort is offline   Reply With Quote
Old 01/13/2012, 10:41 AM   #75 (permalink)
Member
 
Join Date: Jan 2012
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

does someone know if the 3.0.5 update would harm this patch, or is it safe to update?
NovaForce is offline   Reply With Quote
Old 01/13/2012, 12:52 PM   #76 (permalink)
Member
 
Join Date: May 2008
Posts: 56
Likes Received: 3
Thanks: 3
Thanked 23 Times in 11 Posts
Default

Quote:
Originally Posted by NovaForce View Post
does someone know if the 3.0.5 update would harm this patch, or is it safe to update?
Just tested and it works great... now keep in mind that you have to re-run my script and re-activate things after installing 3.0.5 but the good news is it still works great.

Thanks!
JZ SmartMort is offline   Reply With Quote
Old 01/14/2012, 06:17 PM   #77 (permalink)
Member
 
Join Date: Sep 2011
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jmahr1127 View Post
Thanks for the Quick response! However, whenever I try to do this, it gives me the response:

/media/internal/JZ_default_browser_justtype_switch_0_4.sh: line 101: syntax error: unexpected "elif" (expecting "then")

Any advice? Should I just go in and manually change the text to "then"?
I'm also getting this error message.

btw does this patch, allow new links to be open in a new tab instead of launching a new browser?
zzricezz is offline   Reply With Quote
Old 01/14/2012, 06:40 PM   #78 (permalink)
Member
 
Join Date: May 2008
Posts: 56
Likes Received: 3
Thanks: 3
Thanked 23 Times in 11 Posts
Default

Quote:
Originally Posted by zzricezz View Post
I'm also getting this error message.

btw does this patch, allow new links to be open in a new tab instead of launching a new browser?
Not sure what to do in your case just like I answered the other guy... a hundred or so people used it already so I'd expect more complaints. Something is weird with your shell where it does not like normal IF statements.

Try the attached version and tell me if it works but it has very minor modifications and will probably do the same thing to you but I just tested it yesterday and it works on my TP...

Thanks!


UPDATE: attachment removed and is now available on the first post after positive feedback was received.

Last edited by JZ SmartMort; 01/15/2012 at 02:35 PM.
JZ SmartMort is offline   Reply With Quote
Old 01/15/2012, 09:07 AM   #79 (permalink)
Member
 
Join Date: Sep 2011
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by JZ SmartMort View Post
Not sure what to do in your case just like I answered the other guy... a hundred or so people used it already so I'd expect more complaints. Something is weird with your shell where it does not like normal IF statements.

Try the attached version and tell me if it works but it has very minor modifications and will probably do the same thing to you but I just tested it yesterday and it works on my TP...

Thanks!
Thanks this new script worked for me. But should link be open as a new tab or launch a new browser?
zzricezz is offline   Reply With Quote
Old 01/15/2012, 02:33 PM   #80 (permalink)
Member
 
Join Date: May 2008
Posts: 56
Likes Received: 3
Thanks: 3
Thanked 23 Times in 11 Posts
Default

Quote:
Originally Posted by zzricezz View Post
Thanks this new script worked for me. But should link be open as a new tab or launch a new browser?
Perfect! My script does not control anything other than giving you the ability to open links with AdvBrowser. Opening new tab rather than new card is purely a software function of AdvBrowser and I'd have no conrol of it.

Thanks!
JZ SmartMort is offline   Reply With Quote
Reply

 

Tags
advanced browser, browser, default

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0