You are here

Local path ?? - Portable Firefox

12 posts / 0 new
Last post
papy
Offline
Last seen: 17 years 7 months ago
Joined: 2007-02-19 16:59
Local path ?? - Portable Firefox

Local path - Portable Firefox

Smile Smile Smile 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

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 43 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Local Homepage

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!

papy
Offline
Last seen: 17 years 7 months ago
Joined: 2007-02-19 16:59
Local path - Portable Firefox

The local path is ok....

I forwarded to you my donation.

Thanks for help...

mrgutis
Offline
Last seen: 17 years 7 months ago
Joined: 2007-02-22 02:35
change it

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.

Lord_Nemesi
Offline
Last seen: 14 years 3 months ago
Joined: 2010-06-01 11:05
Hi Guys, I need to know how

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!

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 3 months ago
Joined: 2007-04-15 21:08
file:///

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

richo
richo's picture
Offline
Last seen: 4 months 2 weeks ago
Joined: 2007-01-31 22:03
Another way...

Another way to do it is to put your Mini WebSite in a subfolder in "FirefoxPortable\App\Mozilla Firefox" and use
user_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. Sad

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 43 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
No Need

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!

JFD62780
Offline
Last seen: 13 years 6 months ago
Joined: 2011-03-23 16:50
There IS a Need

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.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 43 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Exactly The Same

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!

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 2 months ago
Developer
Joined: 2006-12-29 23:48
No need.

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. Wink

~3D1T0R

JFD62780
Offline
Last seen: 13 years 6 months ago
Joined: 2011-03-23 16:50
. . .

. . .

After 5 minutes of non-stop experimentation, I can only come up with one conclusion: At least the drive letter's changed! Wink

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...

Log in or register to post comments