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.

Application lenses seem to be ordered alphabetically by default:

enter image description here

From left to right: dash home --> applications --> extras-unity-lens-wikipedia --> files --> music --> recoll --> video

Is there any way you can change this order? Perhaps by modifying the .lens files in /usr/share/unity/lenses?

I'd rather hear from someone who has done this already before messing around on my own.

share|improve this question
    
if they do load alphabetically, you might be able to rename the folders that house lenses to 00-application.lens 10-music.lens 20-files.lens. if it works let me know and i'll add in some details and flesh it out as an answer. –  hbdgaf Sep 24 '12 at 8:27
    
Thank you for the offer. I did some trial runs and it's almost like you said. I compiled an answer with the details. –  Glutanimate Sep 24 '12 at 12:54

2 Answers 2

up vote 4 down vote accepted

Aking 1012 was right, almost. You have to change both the folder name and the .lens name in the folder for the change to take effect.

Head to /usr/share/unity/lenses:

gksu nautilus /usr/share/unity/lenses

Rename both the lens folder and the .lens file to change their alphabetical order, e.g.:

recoll --> yrecoll

and

recoll.lens --> yrecoll.lens

I found that editing the default lenses was quite buggy and resulted in some scopes being disabled. That's why I settled for editing my custom lenses only. This is the result for yrecoll and zwikipedia:

enter image description here

share|improve this answer

You can change dconf settings to re-order the lenses.

In the dash open dconf-editor.

Then, go to com>caconical>unity>dash. Change the value of the key "home-lens-ordering" to the specific order you want.

I do not recommend changing folder/.lens name since whenever that specific lens calls the configuration file, it will not find it!

Hope this helps.

share|improve this answer
    
Thank you for this answer. I am glad to see that a more sane ordering method has been implemented. I take it you are running Ubuntu 12.10/13.04? On 12.04 there is no -->unity-->dash key as far as I can see. –  Glutanimate May 5 '13 at 12:50

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.