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

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
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.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4980
Joined: 2015-12-09, 15:45
Contact:

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."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
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.

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
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
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
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.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
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.

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
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
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
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.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
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).

New Tobin Paradigm

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
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
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.

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2409
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.

Locked