My Win10 pc had a meltdown. No problem really as I was already migrating to Linux. Using Peppermint 10. Before the meltdown, I had copied the Firefox profile folder to an external drive for future use.
So, to make the P-Mint Firefox more usable immediately, I tried to copy over the .json files for bookmarks and logins.
Linux sees them as Program rather than Binary. Is there any way, short of being an expert programmer, that I can get these files to work in Linux ?
I suspect that they have windows line endings, which do not work with many linux programs.
Running the files through the dos2unix command to convert them to unix line endings should work for an easy solution. Some text editors should also do it, as well as sed or awk although those are more complex.
Wait what? You’re talking about JSON files?
They are neither. JSON is purely a text-based format, and line endings shouldn’t matter all that much since JSON can also be read without any line endings at all.
So when you say it’s “a program” then either you copied the wrong files, or whatever you used to determine this has weird definitions of programs and strings.
Okay, so a .json is a text file. Gedit won’t properly open it. Gedit gives a warning in red letters at the top that it could not read some of the characters. So I looked for other editors and installed Sublime, and that displays it in 8 columns of letter/number combinations, containing 2053 lines. So, unreadable for me.
It is the file manger that tells me Binary or Program, in the column header when displaying files.
AdminDev, thanks for that. It seems I made the problem far more complicated than it was. I was thinking I’d need to copy the file into the folder, never realizing that Linux would allow it’s Firefox to Restore from a json file on a USB external drive.