Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Whenever I search for a program in Gnome Shell's search panel, some contacts from Pidgin will appear. E.g. when I search for Chromium, by typing chr, Chris Andersen will appear. I don't want this to happen. Is it possible to disable this function?

share|improve this question
    
Please define your question. For more details on best practices consider reading the FAQ on asking questions. Specifically is this related to Gnome-Do or what? Please describe. Regards, –  Ringtail Apr 3 '12 at 20:16
    
I think it's pretty clear. It's not related to Gnome-Do. It's just normal gnome-shell behaviour. If you don't know what I'm talking about: sudo apt get install pidgin gnome-shell, then import contacts in Pidgin, after that, log in into a Gnome-Shell session, press the Super key, and start typing a name of one of your Pidgin contacts. His name will appear in the results. I don't want this to happen, the only thing I want to see is applications, directories and files. –  Exeleration-G Apr 3 '12 at 21:59
    
Edited your question. "Gnome 3" is very ambiguous since there are two official Gnome 3 shells (the classic Gnome Panel and Gnome Shell) and several others, including Unity, which also has a "search panel". –  Jo-Erlend Schinstad Apr 7 '12 at 4:59
    
That's OK - thanks. –  Exeleration-G Apr 7 '12 at 6:39

2 Answers 2

up vote 3 down vote accepted

I was curious about this myself, greping around in /usr/share/gnome-shell/js/ui I found reference to contactDisplay in overview.js. You should be able to comment out the two lines:

const ContactDisplay = imports.ui.contactDisplay;
this.addSearchProvider(new ContactDisplay.ContactSearchProvider());

and that will take care of it. Just tested it, and nothing broke immediately (your results may vary). I wont make any assumptions of your skill set so to comment these lines

Alt+F2 gksu gedit /usr/share/gnome-shell/js/ui/overview.js find the two lines listed and place // (comment markers) in front of them, save, and Contacts are gone from search results.

The search panel you refer to is called the overview. That may help with future questions.

share|improve this answer
    
Great, it works and it's an elegant solution, too. Thanks for telling me how to comment in a .js file, because I was already going with the #s :-P –  Exeleration-G Apr 7 '12 at 6:55
1  
A more elegant solution would be an extension that removed it, because if gnome-shell updates than you will have to go back in and do it again. Maybe I'll work on that. One of the annoying things I find about the contacts is duplicates from different programs. –  Gary Apr 7 '12 at 14:02
1  
I try this, but never found the lines :( –  DrKenobi Mar 6 '13 at 4:35

It is by default search handling technique in gnome , better way is to use synapse for search, it is very light and very fast, plus it provides filters to search. it will solve your problem,

share|improve this answer
1  
Or add a launcher for chromium so you so not need to search for it all the time ;) –  bodhi.zazen Dec 17 '11 at 14:43
    
Thanks, but that's not really what I'm looking for. –  Exeleration-G Dec 17 '11 at 19:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.