Page 1 of 1

Firefox Direct Bookmark Access [SOLVED]

Posted: Sat Mar 24, 2018 11:28 am
by henryg
I have now allowed direct access, but changes I make to bookmarks when FF is sandboxed do not change the original file (places.sqlite?).

I see the template includes:
OpenFilePath=firefox.exe,%Tmpl.Firefox%\bookmark*
OpenFilePath=firefox.exe,%Tmpl.Firefox%\places*
OpenFilePath=firefox.exe,%Tmpl.Firefox%\favicons.sqlite

but where does %Tmpl.Firefox% resolve to, as my profile directory in not in the standard location but at D:\Documents\Firefox\default2?

Regards


Henry

Re: Firefox Direct Bookmark Access

Posted: Sat Mar 24, 2018 12:24 pm
by APMichael
You can check the Templates.ini file for the variables:
[TemplateSettings]
...
Tmpl.Firefox=%AppData%\Mozilla\Firefox\Profiles\*
If you have changed the default path of the Firefox profiles, you can override the variable. Just add to your Sandboxie.ini:

Code: Select all

Ovr.Tmpl.Firefox=D:\Documents\Firefox\default2\
More information: https://www.sandboxie.com/ExpandableVariables (section "Overriding Variables").

Re: Firefox Direct Bookmark Access

Posted: Sat Mar 24, 2018 2:59 pm
by Guest10
The method that is built into Sandbox Settings to specify an alternate profile folder location is:

Open Sandboxie Control's window; right-click the sandbox that you will use; click on Sandbox Settings.
Navigate to Applications > Web Browser > Firefox in the left-hand pane.
"Click on "Allow direct access to Firefox bookmark and history database", then click "Add", then click "Apply".
(You have probably already done that)

In the left-hand pane, scroll down to and click on "Folders".
You should see "Select folder for" ... Firefox
For an alternate folder location, click on the "Add" button
Navigate to and select your "D:\Documents\Firefox\default2" folder.
When you see that listed under "Alternate location", OK your way out.

This will add a new section to your sandboxie.ini file:
[TemplateSettings]

Tmpl.Firefox.(your username here)=D:\Documents\Firefox\default2

"(your username here)" in the above line will be replaced with whatever is listed as "SbieCtrl_UserName" underneath the [UserSettings_xxxxxxx] section in your sandboxie.ini file.

Re: Firefox Direct Bookmark Access [SOLVED]

Posted: Mon Mar 26, 2018 5:00 am
by henryg
I chose to edit sandboxie.ini directly and use Ovr.Tmpl.Firefox=D:\Documents\Firefox\default2\ as I think the "Ovr" part will remind me in future why it is necessary.

Thank you for the link to "Expandable Variables" which I did read, but somwhow I doubt I will remember when it happens again. Why does Sandboxie have to hard-wire installation location settings rather than getting them from Windows [rhetorical]? Pretty much guaranteed to cause problems IMO, but then I'm not a programmer.

Working now as expected. Thank you both for your help. :D