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 Thu 30 Oct 2014, 14:39
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How can I make sure a URL opens in Firefox?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message

PostPosted: Tue 11 Oct 2005, 20:21    Post_subject:    

Forgive me for being dense, but could you explain a method to ensure that when an application launches a url, it will be opened via Firefox?

I have tried the smybolic link and even played around with the idea of renaming the mozilla that comes preinstalled in Puppy 1.05, but I think there must be a better way.

I'm using the 1.07 version of Firefox from the DotPup manager, and in case you're wondering, I require Firefox due to some extensions that I use that make all other browsers useless to me.

Thanks in advance.

BTW, the information you provided is great, but only helps with launching the program, and that's why I'm asking this.

Again, BTW, I realise that there's a good chance that what I'm looking for is explained elsewhere, or that I'm just not understanding the answer, so thanks, and I'm sorry as needed.
Back to top

Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 11 Oct 2005, 21:00    Post_subject:  

as far as I know, it is not possible.

But applications could read in an environment-variable $BROWSER.

So you could add a line
to your startup-file

Then the application could start an URL like this:

system(env("BROWSER") & " " & $URL);

Unfortunately this is not a standard, so this basically just is helpfull if you write your own applications or scripts.

Back to top
View user's profile Send_private_message Visit_website 
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Wed 12 Oct 2005, 00:45    Post_subject:  

if you installed Firefox using my dotpup, there should be a file in /root/my-applications/bin/ called something like firefox107

you can right click firefox107 and click Open As Text
there should be a line something like:
exec /root/my-documents/firefox-installer/firefox "$@"
depending where Firefox is installed

you can copy the line to /usr/local/bin/mozstart, just under

now anything that tries to open Mozilla or Opera or Firefox or Netscape should run Firefox 1.0.7 instead

you could right click an html file and set it's run action to mozstart if you want it to open an html file with your default browser instead of dillo, when you click it ... i think i put my Firefox bugfix in my Firefox 1.0.7 dotpup, otherwise that won't work with Firefox

or you could put it in /usr/local/bin/defaultbrowser instead of mozstart, if you prefer
Back to top
View user's profile Send_private_message 
Puppy Master

Joined: 09 May 2005
Posts: 7060
Location: Perth, Western Australia

PostPosted: Wed 12 Oct 2005, 09:03    Post_subject:  

Yes, 1.0.5 has the first attempt at /usr/local/default*, Pup 1.0.6 will do
it better. Even Rox associations will go through them.
I decided on actual files rather than environment variables as I was uncertain
how to change env. variables globally on-the-fly.
Back to top
View user's profile Send_private_message Visit_website 

Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 12 Oct 2005, 17:10    Post_subject:  

I prefer files anyway. This way I can see them and link to them instead of messing with files. I can even replace them with scripts that do all kinds of stuff, like tell the user which program is starting. I don't have any applications for that yet, but you never know what you might need to do.
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send_private_message Visit_website 
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 » Users ( For the regulars )
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0538s ][ Queries: 11 (0.0086s) ][ GZIP on ]