Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

How to sync two firefox profiles, everything except localstore.rdf

  • 12 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 32 προβολές
  • Τελευταία απάντηση από Celeras

more options

Yesterday, I asked about linking cache between two firefox profiles:

https://support.mozilla.org/en-US/questions/925836

And I got to thinking. The only reason I'm even making a second profile is to have two "saved window locations" for multi-monitor purposes. I want these profiles to be EXACTLY the same except for the location in which they are opened (which is saved in localstore.rdf). It occurred to me that with my current setup in the above thread, even though the caches are now linked.. I will still have to change bookmarks twice. Have two different histories, saved passwords, etc. All minor inconveniences at best, but it would still be nice to avoid them!

Like I said, I want these profiles identical except for the locations in which they are opened. I know there are extensions for syncing profiles, but they all seem to be 1 star performance hindering messes. I'd rather do it manually, as I did with the cache. Possible?

Yesterday, I asked about linking cache between two firefox profiles: https://support.mozilla.org/en-US/questions/925836 And I got to thinking. The only reason I'm even making a second profile is to have two "saved window locations" for multi-monitor purposes. I want these profiles to be EXACTLY the same except for the location in which they are opened (which is saved in localstore.rdf). It occurred to me that with my current setup in the above thread, even though the caches are now linked.. I will still have to change bookmarks twice. Have two different histories, saved passwords, etc. All minor inconveniences at best, but it would still be nice to avoid them! Like I said, I want these profiles identical except for the locations in which they are opened. I know there are extensions for syncing profiles, but they all seem to be 1 star performance hindering messes. I'd rather do it manually, as I did with the cache. Possible?

Επιλεγμένη λύση

Found an answer myself, mklink. I delete the places.sqlite(the file where bookmarks are saved) from my 2nd monitors profile. I then go in CMD and create and MKLINK by executing the following:

mklink C:\Path\to\Mozilla\Firefox\Profiles\monitor2\places.sqlite C:\Path\to\Mozilla\Firefox\Profiles\default\places.sqlite

This creates a shortcut in my monitor2 profile, redirecting it to my first monitor's profile folder for the places.sqlite file. Tada, bookmarks are sync'd and changes are saved both ways. I expanded this and created mklinks for formhistory.sqlite, cookies.sqlite, and permissions.sqlite. Works flawlessly, and syncs both ways just like places.sqlite did.

Ανάγνωση απάντησης σε πλαίσιο 👍 0

Όλες οι απαντήσεις (12)

more options

I do not know enough to give a proper answer but some comments that may help:

I am not sure I follow what you ask. Is the saved Windows location you are interested in the coordinates and size of the Window that Firefox view opens in ?

I have never worked with localstore.rdf, but I have often manually edited profiles.ini which points to the profile, that in turn contains the places.sqlite (bookmarks and history database) and your cache.

If you are interested in the cachecontents:

  • use about:cache
  • note there are addons that help with viewing cache content

I am not too clear on what you are doing. If you use -no-remote and start up a Firefox instance with a particular profile then that sees the same bookmarks as any other instance or version of Firefox started with the same profile, but a profile can not be opened twice simultaneously by Firefox. (My understanding of what you say in the other thread is that you have no problem with that.)

Rather clunky and slow, but you could consider writing simple DOS batch files that will modify commandlines or copy files as part of launching Firefox.

more options

To clarify what I'm doing: I have two firefox shortcuts. One links to my default profile, on my main monitor. One links to my second profile, on my second monitor. Each profile has a saved window location in localstore.rdf, so each profile is opened by default on the monitor that the shortcut is on. I do this because I fullscreen game on my main monitor, and want to prevent firefox from opening on the main monitor (behind the game window) should I forget to drag the window over beforehand.(obviously using the shortcut on my second monitor).

Currently, I linked the cache on both profiles just so I didn't waste space caching the same crap twice. Now I'm looking into linking bookmarks/history/password/etc, so I don't have to double-up on changes I make while in a specific profile (new favorite, saved password, etc).

more options

I did wonder if Firefox portable would help, that is a simple method of running firefox,and more importantly the profile from a USB stick, but you are apparently not talking about different computers just a different monitor.

I suppose you could look into using a short dos batchfile to copy or replace the localstore.rdf, you could use that as a shortcut to launch Firefox with each shortcut being to a .bat using the appropriate localstore.rdf

For general info on DOS .bat files

more options

Thanks for the suggestion, but hopefully there's an easier way within firefox like I did with the cache :)

more options
more options

That looks like it will copy the files between both folder locations. Is it not possible to just redirect firefox like I did with the cache?

more options

Tried SyncToy and it does indeed just constantly re-write files. I need something within firefox similar to browser.cache.disk.parent_directory, except linking bookmarks/passwords/etc.

Either that, or I need something within firefox to allow me two separate saved locations I can trigger without having to use two profiles :)

more options

One last bump before I give up all hope :)

more options

Hi Celeras,

Sorry I can not think of anything like what you are looking for, but did not answer as someone else may have had a suitable solution.

John

more options

If you do not intend to have the two profiles open at the same time then you can swap the localstore.rdf file with the wanted version and make a backup copy of the current localstore.rdf after closing Firefox. You can start Firefox with a script (cmd) file to achieve that.

more options

If im understanding correctly: two localstore.rdf on hotswap, one profile, two shortcuts? How would I achieve that with cmd?

more options

Επιλεγμένη λύση

Found an answer myself, mklink. I delete the places.sqlite(the file where bookmarks are saved) from my 2nd monitors profile. I then go in CMD and create and MKLINK by executing the following:

mklink C:\Path\to\Mozilla\Firefox\Profiles\monitor2\places.sqlite C:\Path\to\Mozilla\Firefox\Profiles\default\places.sqlite

This creates a shortcut in my monitor2 profile, redirecting it to my first monitor's profile folder for the places.sqlite file. Tada, bookmarks are sync'd and changes are saved both ways. I expanded this and created mklinks for formhistory.sqlite, cookies.sqlite, and permissions.sqlite. Works flawlessly, and syncs both ways just like places.sqlite did.

Τροποποιήθηκε στις από το χρήστη Celeras