Firefox on a USB memory stick!

Discussion of general topics about Mozilla Firefox
Post Reply
gutzalpus
Posts: 15
Joined: January 24th, 2004, 8:10 am

Post by gutzalpus »

Is anyone else having the problem that using this script eliminates functionality of "save link target as" and "save page as"? I don't think it should be in the faq just yet given that it causes a fairly major bug in Firebird's functionality.
Walter K
Posts: 45
Joined: November 8th, 2002, 3:12 pm

Post by Walter K »

Here is a modified script that I used. There might be a need to create a Desktop folder under Profiles - that's the folder Firebird tries to use the first time it saves a file. I change folder instead. The script has a few extra vars defined just to be safe and configurable.

NOTE: There is a modified script version later in the thread.

echo off
set myUsbRoot=%cd%
rem get rid of trailing slash if running of disk root
FOR %%a IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF %%a:\==%cd% set myUsbRoot=%%a:

set USERNAME=usbuser
set USERPROFILE=%myUsbRoot%\Profiles\%USERNAME%
set APPDATA=%USERPROFILE%\Application Data

rem setting temp dirs
set TEMP=%myUsbRoot%\temp
set TMP=%TEMP%

rem make sure all needed dirs exist
ECHO Creating required folders
if NOT exist "%USERPROFILE%" mkdir "%USERPROFILE%"
if NOT exist "%APPDATA%" mkdir "%APPDATA%"
if NOT exist "%TEMP%" mkdir "%TEMP%"
if NOT exist "%TMP%" mkdir "%TMP%"

set fbHome=%myUsbRoot%\MozillaFirebird
if exist "%fbHome%\MozillaFirebird.exe" ECHO Starting...
if exist "%fbHome%\MozillaFirebird.exe" start %fbHome%\MozillaFirebird.exe %1 %2 %3
echo on
Last edited by Walter K on March 15th, 2004, 8:54 pm, edited 1 time in total.
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

walter: you would want to modify your prefs.js for the download dir.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
TheDormouse
Posts: 242
Joined: December 22nd, 2002, 11:23 pm

Post by TheDormouse »

Does anyone know if an autorun.inf works on a USB keychain? That would be nice: plug it in and Firebird starts.
Walter K
Posts: 45
Joined: November 8th, 2002, 3:12 pm

Post by Walter K »

alanjstr wrote:walter: you would want to modify your prefs.js for the download dir.


The script I have is to make default .zip build to run from a USB drive. All other customizations/plugins/etc. are the next steps if one needs those extras.
scragz
Posts: 2914
Joined: February 8th, 2003, 2:38 am
Location: San Diego, US
Contact:

Post by scragz »

I can't get this to work; it still uses the default appdata dir. I even removed my existing appdate/phoenix folder, but it created another one.
User avatar
Pgr
Posts: 233
Joined: October 28th, 2003, 10:00 am
Location: Lisbon, Portugal

Post by Pgr »

This batch file and all is very nice to have... but wouldn't it be better to have the default FB package being fully functional, regardless of the drive where it is installed?

I mean, is there a bug for this? Is it being worked on? (with all due respect for all the people who work on bugs - I know you're busy)

I think it's a very cool thing - very unlike Microsoft :-) - to have software that doesn't <I>assume</I> tons of things about your system - it just adapts.

And taking your browser, bookmarks, extensions, etc. around with you on a USB drive sounds to me like a <b>feature</b> that can delight many potential FB users. And it seems we're very near achieving it!
User avatar
alanjstr
Moderator
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here
Contact:

Post by alanjstr »

The market for a portable browser probably is not very large. Firebird allows you to install it anywhere. The point of this "hack" is to take your profile anywhere, too. Unfortunately, that is not how it was engineered.
http://bugzilla.mozilla.org/show_bug.cgi?id=150453
http://bugzilla.mozilla.org/show_bug.cgi?id=157662
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files
IGAU
Posts: 831
Joined: November 18th, 2003, 2:25 pm

Post by IGAU »

The market probably isn't very large, but the benefits for those who would use it are. Also, I cant think of many browsers or other pieces of software that would allow you to do this. It gets my vote... and great work on that batch file walter.
TheDormouse
Posts: 242
Joined: December 22nd, 2002, 11:23 pm

Post by TheDormouse »

IGAU wrote:The market probably isn't very large, but the benefits for those who would use it are.

While the market for Firebird to do this might be small, doing this for Thunderbird might be quite desirable to a lot of people. And I have a feeling that once the "portable profile" works for Firebird it could easily be ported to Thunderbird.
User avatar
mai9
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona
Contact:

Post by mai9 »

I am not sure if the market is that small. A lot of geeks and non-geeks I know have bought a pendrive to carry their files around.

In fact, you can find computers everywhere today, and a pendrive makes that computer *your* computer. A very cheap alternative to laptops IMHO.
critter
Posts: 2
Joined: July 16th, 2003, 12:02 am

Post by critter »

Slimeboy wrote:My school blocks .exe files so i cant run firebird. But i will talk and see if i cant get a special provesion.


rename MozillaFirebird.exe to explorer.exe
User avatar
Pgr
Posts: 233
Joined: October 28th, 2003, 10:00 am
Location: Lisbon, Portugal

Post by Pgr »

About how big is the market for portable browsers: most people don't know they want it, but they might get friendly with the idea after they tried it.

A portable IE is a totally useless piece of crap (same as a non-portable IE :-)) because IE exists everywhere you go (windows world), it is the same everywhere except for your "Favorites". But FB is really customizable with themes, extensions, etc. So portable browser seems to be <b>especially adequate feature for FB</B>.

I just thought of something that hadn't ocurred to me before, while I was writing the previous paragraph. What about <b>inter-platform portability</b> on a USB drive? Like having two directories with the binaries for Win32 and Linux, and a single profile folder with Extensions/Themes/Bookmarks/Options/etc. This way even multi-platform users could enjoy the benefits of having a single browser... Is this possible?
Jaycatt
Posts: 2
Joined: February 3rd, 2004, 5:02 pm

Post by Jaycatt »

Okay, so I've tried the batch file that Walter K suggested above, and it works fine for when the USB is showing as Drive G:, but when I move the USB stick to another computer where it comes up as drive E:, when I start Firebird I'm asked to create a new Profile since it can't find the default. I check all the variables (i.e. %cd%) and they are indeed showing the correct drive letters. Is there another change I'm missing? Or do I need to make a new Profile for each of the other drive letters I may be encountering?

I'm using Windows XP, if that makes any difference.

Thanks to all that can help. I'm just looking for an easy way to carry a browser around as I troubleshoot PCs out in the field, mostly so I can always get my bookmarks and have a working Java client (you'd be surprised how many people don't have Java working on the PCs I visit).
Antrex
Posts: 69
Joined: September 13th, 2003, 3:30 pm
Location: Sweden
Contact:

Post by Antrex »

Hey, this is really the kind of thing i never knew i wanted :D
Gotta go get myself a usb drive some day soon....
Post Reply