[Jslib] Re: newbie: remove locked file? find mozilla path?
pete collins
petejc@mozdev.org
Mon, 19 Aug 2002 20:24:44 -0400
//chill wrote:
> Hi, sort of newbie here, searched for answers but found none.
>
> I've created a checkbox which basically copies the flash plugin and
> renames it, then copies it back to turn off obnoxious crap on web pages.
> Works ok, unless Mozilla is using flash, which then I cannot delete the
> file. Anyway around this?
>
> Also right now I'm hardcoding the path to the plugin, but I'd prefer to
> have the path relative to Mozilla. But how do I grab the location of
> Mozilla? I know I can use the ChromeToPath function but is there
> something better, like an environment variable I can grab?
>
> BTW jslib rocks!
> Thanks
> Chris Hill
You would want dirUtils.js
Doc:
http://jslib.mozdev.org/libraries/io/dirUtils.js.html
Just about every useful directory relative to mozilla is in there.
--pete