Local path - Portable Firefox
I installed Portable Firefox on a key USB to carry a mini WebSite
=> DESCRIPTION:
The File « pref.js » in the folder « Portable Firefox contains the path below :
user_pref("browser.startup.homepage", "file:///G:/my-site/index.html");
When I connect the USB Key in my computer, everything works well
=> PROBLEM:
When I connect my USB key on a different computer, the letter that identify my key USB may be different on an another computer.
user_pref("browser.startup.homepage", "file:///G:/my-site/index.html");
=> QUESTION:
I would like to run my Mini WebSite which is on my USB Key on any computer without changing the letter.
Have you got any way to make it works?
Thanks
The feature is called local homepage. If you open up the help.html file in your FirefoxPortable directory, there's a link for advanced options. It links to the readme file in FirefoxPortable\Other\FirefoxPortableSource that details it. You need to use the FirefoxPortable.ini file. The readme explains how. There's even a sample ini in that same directory.
Sometimes, the impossible can become possible, if you're awesome!
The local path is ok....
I forwarded to you my donation.
Thanks for help...
change it to:
user_pref("browser.startup.homepage", "file:///my-site/index.html");
should do the trick as it will take disk leter of native FF run place.
Hi Guys,
I need to know how to open a HTML file from a usb drive or from a cd using a batch script. I can't use the absolute path (x:/example.html) because if I plug the flash drive (or cd) in a different PC the drive letter is different. I tried this but it doesn't work:
start FirefoxPortable\FirefoxPortable.exe file:///example.htm
Please, can you help me?
Thank you very much!
The "file" protocol is for absolute paths. Just get rid of it and make it a relative, Windows-style path. Also there's no need to run it through
start
.I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
Another way to do it is to put your Mini WebSite in a subfolder in "FirefoxPortable\App\Mozilla Firefox" and useuser_pref("browser.startup.homepage", "resource:///path-to-my-site/index.htm");
E.g: my-site folder in mini-sites subfolder:
user_pref("browser.startup.homepage", "resource:///mini-sites/my-site/index.htm");
EDIT: With the change to omni.jar this method no longer works.
There's no need for any of that nor to resurrect this thread. Just set it and the launcher will portablize it.
Sometimes, the impossible can become possible, if you're awesome!
Believe it or not, there is a reason for that formerly-working other way: What if the Local Homepage was actually four mixed tabs; one global, three local? All the local files are in the "WEBPAGES" subfolder, BTW.
Basically what I'm saying is this: My custom Home Page setting as of 3.6.xx is the following:
http://www.google.com/firefox?client=firefox-a&rls=org.mozilla:en-US:official|resource:///WEBPAGES/FAVORITE.HTM|resource:///WEBPAGES/README.HTM|resource:///WEBPAGES/firefox_bookmarks.html
Given that the resource: tag is rendered obsolete by omni.jar, how do I properly get all four tabs to show up in 4.0, since it seems to be the new standard? That's the main thing keeping me from upgrading the portable version. Some final help would be appreciated.
Exactly the same way, just set it. Open all 4 local pages in different tabs and set that as your homepage. The launcher will portablize it. There is no need for the resources links nor has there been for quite some time now.
Sometimes, the impossible can become possible, if you're awesome!
I see that John T Haller has already said this, but since I already wrote this, and I included an example, I'm going to post it anyway.
As John T Haller states, there is NO NEED, all you need to do is open up your four pages in Firefox, Click Tools > Options (or the "Firefox" button > Options), go to the General tab (if you aren't already there) and under "Home Page" click "Use Current Pages" this will set your "Home Page" setting to something similar to the following:
http://start.portableapps.com/|file:///X:/Documents/WEBPAGES/FAVORITE.HTM|file:///X:/Documents/WEBPAGES/README.HTM|file:///X:/Documents/WEBPAGES/firefox_bookmarks.html
and each time you start Firefox Portable it will automatically (it's built into the Launcher) change the drive letter to match the current one.
~3D1T0R
. . .
After 5 minutes of non-stop experimentation, I can only come up with one conclusion: At least the drive letter's changed!
It won't go far as to change the actual directory, though, should the Portable Firefox directory get moved somewhere other than the root, or any other directory...
Okay, just so long as the app can take a drive letter change, that's all that matters...