Export/import search plugins (retaining keywords/order)?

Users and developers helping users with technical Pale Moon issues (Windows and other non-Linux O.S.). Please direct questions about the Linux version to the appropriate Linux board.

Moderators: trava90, satrow

Forum rules
This board is for technical/usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions for Linux, Android and Mac to the dedicated boards.
Technical issues and questions not related to the Pale Moon browser should be posted in "technical chat"
Please keep off-topic and general discussion out of this board, thank you!
User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1455
Joined: 2012-08-19, 20:32

Export/import search plugins (retaining keywords/order)?

Unread post by back2themoon » 2019-08-24, 14:21

Can you guys please tell me if there's a reliable way to do this - including search engine keywords and order?

My current method is described below, but it seems to only work on the same profile (or even PC?). On a different profile, keywords and order are not retained (same goes when using FEBE).

1. Copy searchplugins folder
2. Copy search.json file
3. Copy search-metadata.json file
Last edited by back2themoon on 2019-08-24, 16:40, edited 1 time in total.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

User avatar
moonbat
Lunatic
Lunatic
Posts: 395
Joined: 2015-12-09, 15:45
Location: Australia

Re: Export/import search plugins (with keywords/order)?

Unread post by moonbat » 2019-08-24, 16:17

If you mean the order they are listed, you can change that from the 'manage search engines' option at the bottom of the list in the dropdown on the search field, and use move up/down to change the order.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Linux Mint 19.2 Xfce x64 on HP i5 laptop with 4 GB RAM, always latest versions of PM & Basilisk unless specified.

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1455
Joined: 2012-08-19, 20:32

Re: Export/import search plugins (retaining keywords/order)?

Unread post by back2themoon » 2019-08-24, 16:39

Thanks, but question is about exporting/importing, not changing.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

coffeebreak
Board Warrior
Board Warrior
Posts: 1823
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Export/import search plugins (retaining keywords/order)?

Unread post by coffeebreak » 2019-08-24, 17:02

There's an additional metadata file since PM 28, search.json.mozlz4.

I don't usually use the search plugins, but just now gave a quick try, transferring all four files from a portable setup of 28.6.1 to an empty profile of same PM version (same computer) and it seemed to retain the keywords and order.

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1455
Joined: 2012-08-19, 20:32

Re: Export/import search plugins (retaining keywords/order)?

Unread post by back2themoon » 2019-08-24, 17:05

Thanks coffeebreak. That's interesting. I don't have this file.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1455
Joined: 2012-08-19, 20:32

Re: Export/import search plugins (retaining keywords/order)?

Unread post by back2themoon » 2019-08-24, 17:11

I seem to remember that this file (search.json.mozlz4) was indeed present in the PM28 versions prior to the final v.28 release, but was actually removed from the final release. Not sure though. Perhaps I'm doing something wrong and this file is not created.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

coffeebreak
Board Warrior
Board Warrior
Posts: 1823
Joined: 2015-09-26, 04:51
Location: U.S.

Re: Export/import search plugins (retaining keywords/order)?

Unread post by coffeebreak » 2019-08-24, 18:09

You're right, it's not created in a fresh profile (the file in my profile is about a year old).

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1455
Joined: 2012-08-19, 20:32

Re: Export/import search plugins (retaining keywords/order)?

Unread post by back2themoon » 2019-08-24, 20:08

Search-metadata.json seems to contain both order and keyword information. Don't know why this info is not transferred over though.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1455
Joined: 2012-08-19, 20:32

Re: Export/import search plugins (retaining keywords/order)?

Unread post by back2themoon » 2019-08-24, 22:07

Search.json is described as a cache file. So, I transferred over to PM portable only search-metadata.json and the searchplugins folder, without search.json, and even deleted the pre-existing search.json. It worked, both keywords/order were "imported" too.

I'll try this later/tomorrow on another PC with a standard PM 28 installation (not portable).
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

User avatar
New Tobin Paradigm
Off-Topic Sheriff
Off-Topic Sheriff
Posts: 5889
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Export/import search plugins (retaining keywords/order)?

Unread post by New Tobin Paradigm » 2019-08-25, 03:56

Don't screw with those files. They are auto-generated. As has always have been with older Mozilla applications and specifically with Pale Moon and other UXP applications except Basilisk, all search plugins are kept in searchplugins directory in the profile.

Note: these are not the same format as the ones from the web as there is a difference between the open search xml and the internal mozilla xml. It is mostly analogous but not identical.. You can manually convert between the two pretty easily.

Anyway, you can with the application closed, add and remove them at will and the change will be taken up when you next start up the application.

I made sure the search service with Pale Moon 28 (and non-basilisk) applications maintained this capability for UXP.

Basilisk however was dependent on the changes and still uses the ESR52 incarnation of the code and may never be recoded to do it the old and better way.

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1455
Joined: 2012-08-19, 20:32

Re: Export/import search plugins (retaining keywords/order)?

Unread post by back2themoon » 2019-08-25, 08:57

I copied the searchplugins folder and search-metadata.json on to another PC. Search plugins were of course transferred, so were the keywords. Search engine order however, was not transferred.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1455
Joined: 2012-08-19, 20:32

Re: Export/import search plugins (retaining keywords/order)?

Unread post by back2themoon » 2019-08-25, 10:59

Perhaps the problem is related to what Tobin said: two different search plugin formats (mozilla/open search). If I knew how to convert them (Tobin said it's pretty easy, but I can't work with that alone) then I could try again.

I assume the conversion to be made is open search format=>mozilla format, since I guess the internal pale moon search engines can/should not be touched.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

Post Reply