PDA

View Full Version : Which lens do you use?



Petro Dawg
September 8th, 2012, 04:11 AM
I've been using Ubuntu for about a year now and never knew what a Unity lens was until a couple days ago (yup, that's how much I pay attention). I expect new lenses are coming out all the time and I wanted to start a thread that would keep people informed of new lenses as they are being released. Post your favorite lens and the installation method.

Add a screen shot if you wish (thumbnail with link for the people with slower connections speeds please)

I'll get things started...

I'm running Ubuntu12.04(2D)
I don't think its very new but I installed the wikipedia lens which allows searching wikipedia directly from the dash and I think it is rather nifty.

http://farm9.staticflickr.com/8315/7953000796_a85556b69d_n.jpg (http://farm9.staticflickr.com/8315/7953000796_a85556b69d_b.jpg)

Installed by running this in terminal...


sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update
sudo apt-get install unity-lens-wikipedia

Primefalcon
September 8th, 2012, 04:18 AM
I use 2

wikipedia lens
runescape wiki lens


rs wikia lens

sudo add-apt-repository ppa:ryanmichaelmcclure/ppa; sudo apt-get update && sudo apt-get install unity-lens-runescapewikia

Mikeb85
September 8th, 2012, 07:29 AM
I use a stock ticker lens, the cities lens, the cooking lens, and the wikipedia lens...

Petro Dawg
September 8th, 2012, 03:09 PM
I use a stock ticker lens, the cities lens, the cooking lens, and the wikipedia lens...

Is there something you have to do to get the cooking lens to work? I tried installing it on my wife's computer and the lens would never return any results, just remained blank. I uninstalled, reinstalled, rebooted, with no luck in getting it to work. She's running Ubuntu 12.04-2D.

Frogs Hair
September 8th, 2012, 03:29 PM
I use the stock and news so far. http://www.iloveubuntu.net/easy-guide-ubuntu-1204s-unity-lenses

Frogs Hair
September 8th, 2012, 03:49 PM
Is there something you have to do to get the cooking lens to work? I tried installing it on my wife's computer and the lens would never return any results, just remained blank. I uninstalled, reinstalled, rebooted, with no luck in getting it to work. She's running Ubuntu 12.04-2D.

After installing the cooking lens and looking in the folder usr/share/unity I think the problem may have to do with setting a locale. There is an email address for the developer in file contents.

Petro Dawg
September 8th, 2012, 04:23 PM
After installing the cooking lens and looking in the folder usr/share/unity I think the problem may have to do with setting a locale. There is an email address for the developer in file contents.

I installed the cooking lens on my computer and have the same results (or lack of results)...

http://farm9.staticflickr.com/8182/7955679278_74452e0527_n.jpg (http://farm9.staticflickr.com/8182/7955679278_74452e0527_b.jpg)

Thanks for the suggestion Frogs_Hair, however I'm not sure what you mean by setting a locale. I'm kinda a newbie to Linux and a total Noob when it comes to lenses.

This is the contents of usr/share/unity/lenses/cooking...

http://farm9.staticflickr.com/8310/7955716858_44e60dd147_n.jpg (http://farm9.staticflickr.com/8310/7955716858_44e60dd147_b.jpg)

What do I add/edit here? Am I even looking in the right place?

Frogs Hair
September 8th, 2012, 05:00 PM
This is the part I am wondering about.
# See if we use a German locale
lang = locale.getdefaultlocale()[0]
if '_' in lang:

exploder
September 8th, 2012, 05:08 PM
Great thread and a terrific idea! Thanks for getting this going.

Petro Dawg
September 8th, 2012, 05:15 PM
This is the part I am wondering about.
# See if we use a German locale
lang = locale.getdefaultlocale()[0]
if '_' in lang:



In the unity-lens-cooking file this is the code...

# See if we use a German locale
lang = locale.getdefaultlocale()[0]
if '_' in lang:
lang = lang.split('_', 1)[0]
if lang == 'de':
COOKSUNITED = "Chefkoch Rezepte"
else:
COOKSUNITED = _("Cooksunited Recipes")

In the unity-scope-cooksunited file this is the code...

# Check if we are running in a German locale. Otherwise, the results are
# rather useless, so don't create the daemon.
global lang
lang = locale.getdefaultlocale()[0]
if '_' in lang:
lang = lang.split('_', 1)[0]
baseurl = "http://www.cooksunited.co.uk/rs/scr/s0/%s/recipes.html"
if lang == 'de':
baseurl = "http://www.chefkoch.de/rs/s0/%s/Rezepte.html"
if lang == 'nl':
baseurl = "http://www.cooksunited.nl/rs/scr/s0/%s/recepten.html"

Looks the same as yours to me. :confused: