install browser
install browser
when i install firefox from online. it is created in it's own folder. how do i get the system to see it as a default browser and set it up in appropriate directories to better integrate it to puppy? i know with .deb files these do the work for me. but i want to know how. thanks, john
Re: install browser
It might be easiest to look here:sfl7fl wrote:when i install firefox from online. it is created in it's own folder. how do i get the system to see it as a default browser and set it up in appropriate directories to better integrate it to puppy? i know with .deb files these do the work for me. but i want to know how. thanks, john
http://www.murga-linux.com/puppy/viewtopic.php?t=46390
Spup Frugal HD and USB
Root forever!
Root forever!
Re: install browser
It doesn't really matter what directory Firefox installs to.sfl7fl wrote:when i install firefox from online. it is created in it's own folder. how do i get the system to see it as a default browser and set it up in appropriate directories to better integrate it to puppy? i know with .deb files these do the work for me. but i want to know how. thanks, john
When you install the browser, it puts the main code in a directory (probably /usr/lib/firefox). That directory contains a script called firefox that actually runs the browser and loads firefox-bin which is the actual program. The install process creates a symlink of that script into /usr/bin. /usr/bin is in your $PATH, so you can type "firefox" in a terminal window to run it.
Other Puppy functions rely on a definition of the default applications for that function. These are all defined in shell scripts in /usr/local/bin with names like defaultbrowser or defaulttexteditor.
defaultbrowser is a two line script:
Code: Select all
#!/bin/sh
exec mozstart "$@"
To get Firefox seen as the default browser, edit the defaultbrowser script to make it
Code: Select all
#!/bin/sh
exec firefox "$@"
For that matter, you could edit the defaultbrowser script to provide a full path to the firefox script:
Code: Select all
#!/bin/sh
exec /usr/lib/firefox/firefox "$@"
The same procedure holds true for any of the other default scripts in /usr/local/bin. You can modify them to substitute your preferred application for what FF uses by default.
______
Dennis
Re: install browser
When you install the browser, it puts the main code in a directory (probably /usr/lib/firefox). That directory contains a script called firefox that actually runs the browser and loads firefox-bin which is the actual program. The install process creates a symlink of that script into /usr/bin. /usr/bin is in your $PATH, so you can type "firefox" in a terminal window to run it.
thankyou, i use xarchiver to extract firefox and it goes to a temp folder, i move it to 'opt' for instance, is this correct? thanks john
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Have the path in the defaultbrowser to firefox reflect the real path. So /opt/.......
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Re: install browser
If you prefer. As mentioned, it doesn't matter where it lives. You can put it under /opt/firefox if desired. You just need a symlink in a directory in your $PATH, and to change the defaultbrowser script to point to it.sfl7fl wrote:thankyou, i use xarchiver to extract firefox and it goes to a temp folder, i move it to 'opt' for instance, is this correct? thanks johnWhen you install the browser, it puts the main code in a directory (probably /usr/lib/firefox). That directory contains a script called firefox that actually runs the browser and loads firefox-bin which is the actual program. The install process creates a symlink of that script into /usr/bin. /usr/bin is in your $PATH, so you can type "firefox" in a terminal window to run it.
Caveat: this assumes a new install, when you didn't have Firefox installed before. If you did, and this is an upgrade, you are better served by extracting over your existing firefox directory. This will simply update the firefox code to the latest version.
Your bookmarks, Firefox config data, extensions, themes and the like are stored in a profile directory which is elsewhere and untouched by the upgrade.
______
Dennis
Re: install browser
okay I am learning,, i found this command online. (see below,) and ran it,If you prefer. As mentioned, it doesn't matter where it lives. You can put it under /opt/firefox if desired. You just need a symlink in a directory in your $PATH, and to change the defaultbrowser script to point to it.
# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin:/opt/samba/bin
so these are all directories in my $PATH and it doesn't matter if the actual program is there. a symbolic link in any one is enough?
ill stop for now to let this soak in.