newtabtools icon indicating copy to clipboard operation
newtabtools copied to clipboard

NewTabTools not functionning after moving Firefox profile to another computer

Open ysalmon opened this issue 3 years ago • 3 comments

Hi,

this is just for reference to future users : when moving the firefox profile folder as a whole to another computer and starting Firefox there, one may experience problems similar to #280. Indeed, opening a new tab just show an XML error page referring to some moz-extension page. At least this is what happened to me (moving from Linux to another Linux, btw).

Running firefox -purgecaches the first time after the transfer prevents this error from occurring (at least it did for me !).

ysalmon avatar Feb 19 '22 14:02 ysalmon

I have to rescind that statement ! It is not always working.

ysalmon avatar Apr 21 '22 07:04 ysalmon

I cannot wrap my head around the fact that the extension behaves differently when the profile is moved to another computer. HOs is this possible ? It is reading from the same files.

ysalmon avatar Apr 21 '22 08:04 ysalmon

It seems newTabTools (and some other extensions too) store, or rely on something that stores, the absolute path of the firefox profile.

As my profile is not under the same path on both machines, this leads to malfunction. I tried replacing all instances of the old path with the new one

find $newPath -type f -exec sed -i '' -e 's:$oldPath:$newPath:g' {} \;

This seems to work.

ysalmon avatar Apr 23 '22 08:04 ysalmon