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 Sat 25 Oct 2014, 17:21
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 Posts_count  
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
Sub_title: 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.

Edited_time_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
Sub_title: 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: 729

PostPosted: Wed 14 Mar 2012, 21:04    Post_subject:
Sub_title: 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  152 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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0702s ][ Queries: 13 (0.0227s) ][ GZIP on ]