Mozilla Relay is experiencing issues with call and text delivery. We’re working on a fix. Check Mozilla Status for updates.

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Profile copied to different computer not recognised

  • 40 个回答
  • 0 人有此问题
  • 40 次查看
  • 最后回复者为 mail226

more options

I'm running Firefox 122.0.1 on a Windows 10 desktop PC, with a profile which includes a userChrome.css file which makes several layout and cosmetic changes.

I also have a laptop (also Windows 10) which has an old Firefox 97.0.1 installation, and I'd like to make the same changes on this machine which I'm used to on the main computer. I copied my desktop profile to the laptop, to the same directory as its present profile, but when I rebooted Firefox the transferred profile wasn't recognised.

While doing the transfer I received error messages about some of the folders: Destination path too long. This despite the fact that the registry flag to accept extended paths is set to 1. I had to skip several folders in order to complete the transfer.

Could this be the reason why the new profile isn't being picked up? Or is it because the two Firefoxes are of different versions?

I'd be grateful for any thoughts. Many thanks.

I'm running Firefox 122.0.1 on a Windows 10 desktop PC, with a profile which includes a userChrome.css file which makes several layout and cosmetic changes. I also have a laptop (also Windows 10) which has an old Firefox 97.0.1 installation, and I'd like to make the same changes on this machine which I'm used to on the main computer. I copied my desktop profile to the laptop, to the same directory as its present profile, but when I rebooted Firefox the transferred profile wasn't recognised. While doing the transfer I received error messages about some of the folders: ''Destination path too long''. This despite the fact that the registry flag to accept extended paths is set to '''1'''. I had to skip several folders in order to complete the transfer. Could this be the reason why the new profile isn't being picked up? Or is it because the two Firefoxes are of different versions? I'd be grateful for any thoughts. Many thanks.

由mail226于修改

所有回复 (20)

more options

My guess here is the newer version profile has information that the older version can't read so it can transfer those information and data to a older version as that can not read the newer data. It has to be 1:1 matching Firefox version for the data to transfer over if your doing just "copy". So you need to do the proper Firefox FAQ data transfer methods just copying will not work.

有帮助吗?

more options

A simple method is to start Firefox with the ProfileManager and create a new Profile with the name you want. Shut down Firefox then find the new Profile you created and delete everything inside the newly created Profile. Then copy and paste over the contents from the old Profile into the new Profile. Then start Firefox with the ProfileManager and it should be there as a Profile to use.

https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data

有帮助吗?

more options

Thanks for the speedy replies. I'll try both approaches tomorrow and see what happens.

有帮助吗?

more options

James, unfortunately, your suggestion didn't work. I created a new profile and copied the contents of the desktop one into it, but Firefox wouldn't run. I suspect, as markwarner22 said, there's something in the 122.0.1 profile that clashes with the 97.0.1 version of the browser.

有帮助吗?

more options

I suspected that the problem might be that two different versions of Firefox were involved: 97.0.1 on the laptop, 122.0.1 on the desktop. I thought about updating the laptop one to 122.0.1 but in the end decided to go for the latest incarnation.

Even with 133.0 in place, simply adding the desktop profile to the relevant directory still didn't work: it wasn't recognised. But James' idea was successful: I copied everything from the PC profile into a newly-created one, and that was not only picked up, when set as the default it correctly produced the revised layout that I was used to.

With one exception: for some reason, the colour coding didn't work. My carefully chosen contrasting colour scheme wasn't there. I'll look into that today.

This new profile was developed some time ago with the help of a long and very detailed Q&A thread which I thought was in these forums. But curiously I can't now find it. Is there another area of the web where Firefox coding matters are discussed?

Thanks again to James for getting me this far.

有帮助吗?

more options

Note that you can register a profile in the Profile Manager by using the "Choose Folder" button. See "Start the Profile Manager when Firefox is closed":

Some files have absolute paths, so copying a full profile folder content to a different profile is not recommended.

有帮助吗?

more options

cor-el, thanks for that; it might be the reason why I'm getting only partial success. I'll investigate the option to register a profile.

由mail226于修改

有帮助吗?

more options

An update: I have also been running Firefox 122.0.1 on a spare backup laptop: on this setup, my reconfiguration profile works perfectly with layout tweaks and new colours all intact.

As an experiment, I updated Firefox to the latest version. As with my main laptop (as reported above) the profile wasn't recognised and I was prompted to create a new one. As before, I did so and copied into it the entire contents of my preferred profile. A restarted Firefox picked up this profile and I was able to set it as the default, but once again though the revised layout was more or less intact, there were a few anomalies and the colours weren't picked up at all.

So it seems that there are two possibilities: either the profile isn't compatible with the latest software, or it's my copy-and-paste of the old profile into a new one which - as cor-el suggested - is mucking everything up. I must see if I can find out why simply putting my restyling-profile as a whole into the correct directory isn't getting it recognised.

Thanks to everyone for your patience and thoughts so far.

由mail226于修改

有帮助吗?

more options

Did you update via "Help -> About Firefox" to get to the current version or did you install the latest version as there are so called watershed versions that have migration code to update files to newer schemes?

有帮助吗?

more options

Thanks for the speedy reply. I used Help - About Firefox. Would downloading the latest version from the Mozilla website be a better approach?

由mail226于修改

有帮助吗?

more options

No, best is always to use "Help -> About Firefox" like you did.


You can copy certain files with Firefox closed from one profile folder to another profile folder to transfer your personal data. Note that best is to avoid restoring a full profile folder and only restore important files that are safe to restore/transfer.


  • bookmarks and history: places.sqlite
  • favicons: favicons.sqlite
  • bookmark backups: compressed .jsonlz4 JSON backups in the bookmarkbackups folder
  • cookies.sqlite for the Cookies
  • formhistory.sqlite for saved autocomplete Form Data
  • logins.json (encrypted logins) and key4.db (encryption key/primary password) for logins saved in the Password Manager
  • cert9.db for certificates stored in the Certificate Manager
  • persdict.dat for words added to the spell checker dictionary
  • permissions.sqlite for Permissions and possibly content-prefs.sqlite for other website specific data (Site Preferences)
  • sessionstore.jsonlz4 for open tabs and pinned tabs (see also the sessionstore-backups folder)

有帮助吗?

more options

Again, thanks. If those are the only files it's considered safe to restore, is there a way in which can I continue to use my extensively-coded chrome folder?

有帮助吗?

more options

You can copy the chrome folder as well, but if the profile had been used by an earlier Firefox version then you may need an update for CSS code in userChrome.css. Just be cautious with files like prefs.js and indexedDB (storage folder) and installed extensions.

有帮助吗?

more options

That's very helpful, thanks. Do new Firefox versions usually make it necessary to update CSS coding? If so, are any required changes documented anywhere?

有帮助吗?

more options

mail226 said

Do new Firefox versions usually make it necessary to update CSS coding?

A few times a year, there is a change in Firefox major enough to break userChrome.css rules.

If so, are any required changes documented anywhere?

Nothing official. The r/FirefoxCSS subreddit will have threads for major issues, and forum volunteers here might remember some of the fixes if they were for recent versions of Firefox.

有帮助吗?

more options

Today's update is to report that I now have my revised userChrome.css settings working on the latest Firefox release 133 as far as the layout goes, but the display colours are not being recognised.

I have my notes from when I originally did the coding for version 122.0.1 and will go through them to check exactly how the colours were defined and handled.

chrome/config contains a number of css files all of which begin with color_variables - as well as color_variables.css there are, for example, color_variables_aero.css, color_variables_transparent.css and many others. My recollection is that these were possible variants offered in the article on the subject which I used as a basis for what I did, and which I simply included out of possible ignorance: this might mean that many or most of them might be redundant, though if so I can't see that they would be affecting the outcome.

So the quest continues...

由mail226于修改

有帮助吗?

more options

Assuming you use files from the following repository, it looks like at least one file in the config folder has been updated since Firefox 122 released 11 months ago.

https://github.com/Aris-t2/CustomCSSforFx/tree/master/current/config

有帮助吗?

more options

jscher2000, thanks very much for that; it is the source I used and I'll take a look.

有帮助吗?

more options

The only file which seems to be newer than the ones I used is general_variables.css. I replaced my older version with the updated one and rebooted Firefox but unfortunately the problem still remains. I'm beginning to think that the only way I can keep my customised settings is by disabling Firefox updates and sticking with 122.0.1 .

有帮助吗?

more options

Usually it's just a problem with changed selectors. However, we would only be guessing because we don't have the full picture of the problem. You could ask on r/FirefoxCSS (https://www.reddit.com/r/FirefoxCSS/).

有帮助吗?

  1. 1
  2. 2
我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题