搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

To point Firefox to a different folder for bookmarks.html do I use double \\ in the User.js string?

more options

That's what I conclude from the mozillaZine write up "User.js file." If so, the string is:

user_pref("browser.bookmarks.file", "C:\\Users\\Owner\\Dropbox\\Firefox\\bookmarks.html");

Is the double \\ path separator correct?

When I look at other files in about:config where the pref value is a folder path all that shows is a single \ not a double \\.

And yes, I have backed up prefs.js and bookmarks.html.

Thanks very much in advance for your time and attention to my question.

That's what I conclude from the mozillaZine write up "User.js file." If so, the string is: user_pref("browser.bookmarks.file", "C:\\Users\\Owner\\Dropbox\\Firefox\\bookmarks.html"); Is the double \\ path separator correct? When I look at other files in about:config where the pref value is a folder path all that shows is a single \ not a double \\. And yes, I have backed up prefs.js and bookmarks.html. Thanks very much in advance for your time and attention to my question.

所有回覆 (1)

more options

That is the convention used for the the user.js file.

You also need to turn the backup of bookmarks to the bookmarks.html file.

// backup to bookmarks.html file upon closing Firefox:
user_pref("browser.bookmarks.autoExportHTML", true);