Page 1 of 1

How to recover Bookmarks in Firefox

Posted: Wed Jan 03, 2007 9:53 pm
by Unknown_User_575
I am very new to Sandboxie so I apologise for what is probably a simple question.
I use Firefox as my default (and much preferred browser) but I am unable to recover Bookmarks that I created in a Sandboxed Firefox.
I did in fact follow the "Getting started" tutorial and I was able to recover favourites created in a Sandboxed Internet explorer but when I try to recover files after creating new bookmarks using Firefox the Quick Recovery -DefaultBox does not show the recently created bookmarks and consequently I cannot manage to recover these bookmarks to be recorded in Firefox when not Sandboxed.
Any suggestions or directions would be much appreciated.
Thank you. :?:

Posted: Thu Jan 04, 2007 1:46 pm
by Sorcos
I was just trying to figure this out too, as I am also very new to Sandboxie. An easy way I used to figure this out was to explore the contents of the sandbox (option right above the recover files). I found that Firefox saves its list of bookmarks in one html file in the users profile folder (for ease of transferring bookmarks to other browsers). I have not tried it yet, but it would appear that by saving this one html file, you would save all of your bookmarks.

The users profile for Firefox can be found at:
C:\Documents and Settings\user\Application Data\Mozilla\Firefox\Profiles\

The html file you are looking for is simply called "bookmarks". So, by going to "Configuration" then "Edit Configuration" in Sandboxie, you can add "RecoverFolder=%AppData%\Mozilla\Firefox\Profiles\'name_of_profile'" to the end of the file, where 'name_of_profile' is the name of the folder in "Profiles\". This will add everything changed in this folder to the "Recover Files" option in Sandboxie. You just have to pick "bookmarks.html" out of the list and recover it. You may also choose to recover "bookmarks.bak" which is a backup of your current bookmarks.

Also note that once you add the RecoverFolder string to the file, you must close Firefox, go to "Configuration" then "Reload Configuration" in Sandboxie in order for the changes to take effect.

Since I have not tried this yet, please, someone correct me if I am wrong or if there is a better way.

Posted: Thu Jan 04, 2007 8:31 pm
by tzuk
I vaguely remember this being discussed in this forum some time ago, with various approaches suggested and compared. Try searching for it.

A more practical advice: You can configure Sandboxie to punch holes in the sandbox. You could say: The file holding my bookmarks (bookmarks.html) should not be sandboxed. Any updates to this file by a sandboxed program, should bypass the sandbox mechanism.

In fact there is an option for this in Sandboxie Control. It's the last checkbox on the File Copy Options dialog box:

Sandboxie Control menu -> Configuration -> Sandbox Settings -> Set File Copy Options

Posted: Thu Jan 04, 2007 9:44 pm
by Unknown_User_575
tzuk wrote:I vaguely remember this being discussed in this forum some time ago, with various approaches suggested and compared. Try searching for it.

A more practical advice: You can configure Sandboxie to punch holes in the sandbox. You could say: The file holding my bookmarks (bookmarks.html) should not be sandboxed. Any updates to this file by a sandboxed program, should bypass the sandbox mechanism.

In fact there is an option for this in Sandboxie Control. It's the last checkbox on the File Copy Options dialog box:

Sandboxie Control menu -> Configuration -> Sandbox Settings -> Set File Copy Options
Tzuk:
Sorry to be so dense but I really am making no headway with your recommendations.
I did as you suggested in checking the last checkbox on the File Copy Options dialog box but sadly it did not seem to make any difference at all.
I have no difficulty in recovering files when I am using Internet Explorer, but with Firefox, when I press Function > Contents of Sandbox > Recover Files.......any recently added Bookmarks are just not listed and I am therefore unable to update the bookmarks in my regular (non sandboxed) Firefox.
All I'm asking is how do I make a sandboxed Firefox work exactly the same as a sandboxed Internet Explorer works?
Or is this not possible?
Please help me, I am not particularly adept at the inner workings of computer programming so I really need simple instructions and Sandboxie seems to be a truly great program and I would love to use it regularly, but I must be able to retain any and all of my Bookmarks that I acquire while browsing.
Many thanks for your guidance.

Posted: Mon Jan 08, 2007 6:41 pm
by tzuk
Sorry, I didn't notice this follow-up question earlier.
did as you suggested in checking the last checkbox on the File Copy Options dialog box but sadly it did not seem to make any difference at all.
Did you ever delete the contents of the sandbox, after doing this?

Posted: Mon Jan 08, 2007 7:56 pm
by Unknown_User_575
Did you ever delete the contents of the sandbox, after doing this?
I did indeed delete the contents of the sandbox after checking the checkbox to which you refer.

Posted: Mon Jan 08, 2007 11:25 pm
by Unknown_User_575
Did you ever delete the contents of the sandbox, after doing this?
tzuk:

I would like to correct my earlier post.
I am very happy to say that all seems to be working OK now.
I'm really not sure what I was doing incorrectly, but "punching a hole in the sandbox" seems to have done the trick!
One small question: in the 'File Copy Options- DefaultBox' dilogue box; next to the last checkbox there is a note: (NOT Recommended) ...is there in fact any danger in checking this box (which I have in fact done) on your recommendation.
Thanks for your help.

Posted: Tue Jan 09, 2007 6:37 pm
by tzuk
I marked it not recommended because when you "punch a hole" at the profile folder, this applies to bookmarks, but also to many other data files, including extensions I think.

So it just tries to draw attention that you may be punching a hole for more than you may have intended.

However, the 2.7 line of Sandboxie makes it possible to punch much more delicate holes. You can now say you want to punch a hole for just the bookmarks file:

Code: Select all

OpenFilePath=firefox.exe,%appdata%\Mozilla\Firefox\Profiles\*\bookmarks.html
Whereas before you had to expose the whole Profiles directory.

I'll have to update Sandboxie Control to be smarter about this.

Posted: Tue Jan 09, 2007 8:58 pm
by Unknown_User_575

Code: Select all

OpenFilePath=firefox.exe,%appdata%\Mozilla\Firefox\Profiles\*\bookmarks.html
tzuk:

Do I put this line of code in the Configuration> Edit configuration dialogue?

Posted: Tue Jan 09, 2007 9:29 pm
by Unknown_User_575
tzuk:

I did in fact insert that line of code in the Configuration > Edit Configuration dialogue box.
A 'Sandboxie.ini-Notepad' dialogue box opened and I simply inserted the line of code at the bottom of the rest of the code.

Unfortunately it does not seem to be working.

I would prefer to punch a more delicate hole as you described but could you please tell be what I am doing incorrectly.

More specifically could you please give me directions as to exactly what I need to do.

Thank you very much for your help and support.

Posted: Tue Jan 16, 2007 5:01 pm
by tzuk
The delicate hole (that phrase is beginning to sound silly to me now) that I was referring to, is only possible in a version 2.7 Sandboxie. Have you upgraded to that line of beta versions?

Posted: Tue Jan 16, 2007 5:25 pm
by Unknown_User_575
tzuk wrote:The delicate hole (that phrase is beginning to sound silly to me now) that I was referring to, is only possible in a version 2.7 Sandboxie. Have you upgraded to that line of beta versions?
Tzuk:

I am actually using version 2.64. :oops:
Does one need special knowledge to use v 2.7? and where would I get it?
I have looked around the site but the download page only points to v 2.64 as far as I can tell.
Thank you.

Posted: Thu Jan 18, 2007 7:47 pm
by tzuk
Does one need special knowledge to use v 2.7?
Not special knowledge, no, but that version is still being tested and still has some quirks.

I think at this point, the best thing for you is to expose the entire Profiles folder, like we discussed a few posts ago (and quite a few days ago) in this very thread.

It's just going to be the easiest thing at this time. And with the next version, you could tighten things up a bit more.

Posted: Thu Jan 18, 2007 8:19 pm
by Unknown_User_575
I think at this point, the best thing for you is to expose the entire Profiles folder, like we discussed a few posts ago (and quite a few days ago) in this very thread.

It's just going to be the easiest thing at this time. And with the next version, you could tighten things up a bit more.
Tzuk:

OK I'll do as you suggest and I await the next version with keen anticipation.
Thanks for your advice.

Posted: Wed Feb 07, 2007 12:58 am
by Unknown_User_632
tzuk wrote:
Does one need special knowledge to use v 2.7?
Not special knowledge, no, but that version is still being tested and still has some quirks.

I think at this point, the best thing for you is to expose the entire Profiles folder, like we discussed a few posts ago (and quite a few days ago) in this very thread.

It's just going to be the easiest thing at this time. And with the next version, you could tighten things up a bit more.
I will be looking forward to the new version as well. This is an important thread for FireFox users.

Thanks!