I have added additional search providers (e.g., AskUbuntu, Wolfram, YouTube) in the /usr/share/gnome-shell/search_providers
directory. These work great. However, the order in which they appear on the Activities Overview is not logical.
Is it possible to change the order in which search providers are displayed?
Bonus: How do I make one the default?
11.10
There is a key that is referred to in the gnome-shell search code that allows you to specify which search providers should not be displayed...
By changing the logic you can change that to be a search order list - for example
how to
First make a backup copy of the search script:
Now edit the search script:
Look for the function containing the following code (it probably starts on line 325):
Change this function to be:
Press Alt+F2, type 'r' and press enter. This should restart Gnome-shell). Alternatively, logout and login.
credit
Linked Questions:
To preserve the meaning of the gsettings variable, another possibility would be to modify
search.js
to order search providers files by name:Then you would rename the files in
/usr/share/gnome-shell/search_providers
likeCarlo.
I found that it arranges them in time order. The search provider which was added latest is first. So if you want to bring Google first just move it somewhere, refresh (Alt+F2 and R), recopy it to the folder and refresh again.
Alternative method: Gnome Shell seems to favour the search provider tied to the most recently edited
.xml
file; to create a custom arrangement, it will be enough to open the files, save them, and restart the shell. If your desired order is, for example: Google, Wikipedia, DuckDuckGo - then DuckDuckGo should be the one you save first, followed by Wikipedia and then Google.