Changes

Jump to: navigation, search

Universal Firefox on a USB Key

574 bytes added, 16:28, 26 February 2008
Version 0.1
We have decided to write a script that allows firefox to read the profile from a directory on the stick instead the default folder on Windows, which is the Application Data\Mozilla folder. We decided to create our Univerisal Firefox with the following file structure:
   . (root of the usb key) .\Firefoxes\ .\Firefoxes\XP .\Firefoxes\Linux .\Firefoxes\Mac .\Firefoxes\Profiles 
Each OS will have their own binary/script that will read the single common profile folder.
rem this is the concatenated command that is executed
rem %total%
The challenge was to write a script that would capture the batch file's location no matter where it was run from (e.g. executing the batch file from the C: drive). To solve this problem in the batch script, we added code to find the location of the batch file, have it execute the firefox call from there and then return to the original directory that he user was on. @echo off cls for /f %%i in ("%0") do set batchpath=%%~dpi echo Starting Firefox From USB echo batchpath=%batchpath% %batchpath%\XP\firefox --no-remote -profile %batchpath%\Profiles\UniversalProfilebash echo Exit 0Our next step is to study shell scripting to get the same effect for Firefox on Linux. The Linux distribution also has a default start up script, that we hope take advantage of. We confirmed that Linux Firefox can read the same universal profile structure that we have designed. Our next goal is to duplicate the same behavior on Linux as we have for Windows.
== Project Leader(s) ==
1
edit

Navigation menu