Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 02:02
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Foxitreader URL launch fix
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
ozsouth

Joined: 01 Jan 2010
Posts: 143
Location: S.E Australia

PostPosted: Fri 11 Feb 2011, 04:25    Post subject:  Foxitreader URL launch fix
Subject description: So clicking on a URL opens a browser
 

*** Edit 17/2/11 (http fix is OK; www fix needed amending) ***

Foxitreader is a great pdf reader - can open embedded URLs. Default result in Puppy was to launch default text editor instead of browser. Other distros didn't have that trouble. Problem is in /usr/local/bin/defaulthandler.

Remove lines 6-8:

Code:
if [ "`echo -n "$AFILE" | grep '\.'`" = "" ];then
 #/usr/local/bin/defaulttexteditor "$1"
 exit



Replace with:

Code:
if [ "`echo -n "$1" | grep 'http:'`" ];then
 /usr/local/bin/defaultbrowser "$1"
exit
fi
if [ "`echo -n "$1" | grep 'www.'`" ];then
 /usr/local/bin/defaultbrowser "http://""$1"
exit



URLs now open the browser. Nothing else appears to be affected.

Last edited by ozsouth on Thu 15 Mar 2012, 17:34; edited 1 time in total
Back to top
View user's profile Send private message 
In the Doghouse

Joined: 03 Oct 2010
Posts: 6

PostPosted: Tue 01 Mar 2011, 08:27    Post subject: Foxit URL launch fix
Subject description: also fixes TrueCrypt Help menu URL's
 

To ozsouth about the URL launch fix, THANK YOU!

I tried this, and it got FoxitReader reading embedded URLs, just as promised.

The bonus is that it also resolved my problem with TrueCrypt, which would take Help menu URLs, and launch an empty geany text editor window. (only remaining TrueCrypt Help menu problem is that the TrueCrypt User's Guide.pdf tries to be imported from postscript (?) into GIMP, instead of just going into Foxit. Had to replace gimp-2.6 executable with a script of the same name, that looks for the TrueCrypt launch of GIMP, and replaces it by calling Foxit:

Code:
#!/bin/sh
if [ "`echo -n "$1" | grep 'TrueCrypt'`" ]; then
 /usr/local/bin/FoxitReader "$1"
exit
fi
exec gimp-2.6ORIG

[Syntax borrowed from ozsouth's URL fix script]

This works, but would love to know why Puppy calls GIMP for a PDF launch)
Back to top
View user's profile Send private message 
Michalis

Joined: 08 Jan 2008
Posts: 237
Location: Greece

PostPosted: Thu 03 Mar 2011, 19:45    Post subject:  

Great fix ozsouth.

Works also for transmission, probably for other programs too. I have suggested it also to Barry at his blog.
Back to top
View user's profile Send private message 
Barkin


Joined: 12 Aug 2011
Posts: 727

PostPosted: Wed 14 Mar 2012, 21:04    Post subject:
Subject description: maybe needs https fix
 

HTTPS links in PDFs don't work for me in Foxit (with FireFox 7),
all HTTPS hyperlinks clicked on in Foxit in my Puppy 525 are redirected to www.homeimprovement.com

I've attached a test PDF (in zip file) with HTTP and HTTPS links, (made in Open Office).

[Both the HTTP and HTTPS links in the attached PDF work OK in Adobe reader in Windows Vista].
PDF with HTTPS hyperlink, a test for Foxit in Puppy.zip
Description  PDF in ZIP file
zip

 Download 
Filename  PDF with HTTPS hyperlink, a test for Foxit in Puppy.zip 
Filesize  30.56 KB 
Downloaded  151 Time(s) 
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 143
Location: S.E Australia

PostPosted: Thu 15 Mar 2012, 04:27    Post subject: Foxitreader Quick Fix  

Referring to initial post, removing the colon after the first http (in /usr/local/bin/defaulthandler) is the quick fix. I now use Racy 522 & its Epdfview opens weblinks, but the same version doesn't in Puppy 525/528/529.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0508s ][ Queries: 12 (0.0040s) ][ GZIP on ]