[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gtk file picker and firefox



Luis Finotti <finotti@math.ohio-state.edu> writes:

> Hi,
>
> Nic wrote:
>> Here's the instructions again to provide some context:
>>  following in nsFilePicker.js which is located in the app's
>> components
>>  directory. After making the change you have to re-register the
>>  components which is easily accomplished by disabling then re-enabling
>>  an extension and then restarting. Installing or un-installing an
>>  extension will also force a component registration.
>>  **** change:
>>      compMgr.registerFactoryLocation(FILEPICKER_CID,
>>                                      "FilePicker JS Component",
>>  //@line 278 *snip*
>>                                      "",
>>  //@line 280 *snip*
>>                                      fileSpec,
>>                                      location,
>>                                      type);
>>  **** to:
>>  Code:
>>      compMgr.registerFactoryLocation(FILEPICKER_CID,
>>                                      "FilePicker JS Component",
>>  //@line 278 *snip*
>>                                      FILEPICKER_CONTRACTID,
>>  //@line 280 *snip*
>>                                      fileSpec,
>>                                      location,
>>                                      type);
>> 
> (....)
>
> Is there a way to change it locally (only for a single user without
> root access)?  I tried to copy the nsFilePicker.js to my
> "~/.mozilla/firefox/<random>/" directory and change it, but it did not
> seem to work.  (The page you mentioned in the original post has this
> questions, but no answer.)

As I said earlier (I think?) there's no reason why it wouldn't work if
you install firefox in your own directory.

If you're worried about space you could probably install it in your
directory but use unionfs to make sure you share most of the code with
the host installed version.


Nic



Reply to: