RSS

Monthly Archives: June 2011

Adding new search providers to Gnome Shell in Gnome3

If you are using Gnome3, then you are probably using integrated searches for Googling or finding something on Wikipedia. Only those two choices are available, but fortunately it’s easy to add new or even exchange them for some other kind. Here is how you can have btjunkie.org integrated search.

You need to enter /usr/share/gnome-shell/search_providers and create btjunkie.xml file with following contents:

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>BTJunkie</ShortName>
<Description>BTJunkie Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-
icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAA
EAAAAAAAAAAEAgQAhIOEAMjHyABIR0gA6ejpAGlqaQCpqKkAKCgoAPz9%2FAAZGBkAmJiYANjZ2ABXWFcAen
t6ALm6uQA8OjwAiIiIiIiIiIiIiI4oiL6IiIiIgzuIV4iIiIhndo53KIiIiB%2FWvXoYiIiIfEZfWBSIiIEG
i%2FfoqoiIgzuL84i9iIjpGIoMiEHoiMkos3FojmiLlUipYliEWIF%2BiDe0GoRa7D6GPbjcu1yIiIiIiIiI
iIiIiIiIiIiIiIiIiIiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA</Image>
<Url type="text/html" method="GET" template="http://btjunkie.org/search?q={searchTerms}"/>
</OpenSearchDescription>

Keep in mind, that I broke lines in the Image tag to display it here. You need to join it together into a single line for it to work.

Now restart Gnome Shell (for example by logging out and logging in) and voila, you should have BTJunkie search nicely integrated.

 
Leave a comment

Posted by on June 8, 2011 in Uncategorized