[Maf] Make MAFs batch files relative

Christopher Ottley xknight at users.sourceforge.net
Sat Feb 26 09:38:32 EST 2005


Michael wrote:

>is it going to be possible to make the extension's script/batch files independent of the profile folder location?
>
The bug fix for bug #246209 doesn't affect MAF script/batch files 
because those are created dynamically when the browser opens for the 
first time. To get  the batch files to work for users of Firefox / 
Mozilla who run off of pen drives, a bit of tweaking would be necessary. 
The easiest way would be to create an extension that does the following:
    When the last browser window closes:
        Set the maf.postsetup.0.5.0.complete preference to false.
        Delete the maf folder and all contents from the profile folder 
being used.

This assumes you're using MAF 0.5.0. Doing this ensures that the next 
time the browser is started, the maf folder is re-created using whatever 
the new profile path is. I've developed a small extension that actually 
does this (tested only on Firefox 1.0/Linux, but should work on Windows) 
available at http://downloads.mozdev.org/maf/penmaf-0.5.0b1.xpi which 
requires you to be using a CVS version of MAF (the as yet unreleased 
version 0.5.0) to work. Try it out and see if it works for you.

Regards,
Christopher.


More information about the Maf mailing list