Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Google search plugin doesn't open links in browser
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Google search plugin doesn't open links in browser
Guest 10

Guest, Sunday 19 May 2013 à 22:39

The Google search plugin seems to have a bug for me. I am able to enter keywords and I get results, but when I click on any of the results, nothing happens. I am assuming it's supposed to open the links in my browser. Does anyone know if there is a way to fix this?

I am running Cairo dock 3.2.1 (recently upgraded from 3.0) on Peppermint Linux 3

Guest, Sunday 19 May 2013 à 23:02

I should add that I am using OpenBox and XFCE

matttbe, Tuesday 21 May 2013 à 18:19


Subscription date : 24 January 2009
Messages : 12573
Hello and thank you for this bug report,

Can you launch the dock from a terminal, reproduce this bug and post all output messages here?
cairo-dock


Can you also launch this command and post all output messages here too?
python -c "import webbrowser; webbrowser.open('http://google.com')"

Guest, Wednesday 22 May 2013 à 23:09

cairo-dock output:
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-Hd8v9I/pkcs11: No such file or directory
Xlib: extension "GLX" missing on display ":0".
warning : (/build/buildd/cairo-dock-3.2.1/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:202)
couldn't find an appropriate visual, trying to get one without Stencil buffer
(it may cause some little deterioration in the rendering) ...
Xlib: extension "GLX" missing on display ":0".
warning : (/build/buildd/cairo-dock-3.2.1/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:262)
couldn't find a suitable GLX Visual, OpenGL can't be used.
(sorry to say that, but your graphic card and/or its driver is crappy)

============================================================================
    Cairo-Dock version : 3.2.1
    Compiled date : Apr 12 2013 20:52:12
    Built with GTK : 3.4
    Running with OpenGL: 0
============================================================================

g_key_file_set_string: assertion `string != NULL' failed
Cairo-Dock - Launcher API Daemon is already running (2305)
File '/usr/lib/indicators3/7/libsoundmenu.so' does not exist.
warning : (/build/buildd/cairo-dock-plug-ins-3.2.1/Indicator-applet3/indicator-applet3.c:cd_indicator3_load:41)
Unable to load libsoundmenu.so
CairoKeyBinding '<Control>F10' failed!
warning : (/build/buildd/cairo-dock-3.2.1/src/gldit/cairo-dock-keybinder.c:cd_keybinder_bind:282)
Couldn't bind '<Control>F10' (Recent-Events: Show/hide the Recent Events)
This shortkey is probably already used by another applet or another application
_cd_find_volume_name_from_drive_name: assertion `pDrive != NULL' failed
[+] Google: Applet started
warning : (/build/buildd/cairo-dock-3.2.1/src/icon-factory/cairo-dock-application-factory.c:cairo_dock_new_appli_icon:233)
this window (Openbox, 16784517)doesn't belong to any class, skip it.


It looks like it's not using OpenGL, which is strange (and another issue entirely).

python -c "import webbrowser; webbrowser.open('http://google.com')" output:
Created new window in existing browser session.


It is strange that the Google search applet isn't successfully open tabs in Chromium.

matttbe, Thursday 23 May 2013 à 00:04


Subscription date : 24 January 2009
Messages : 12573
Did you reproduce the bug when the dock was launched from your terminal?
There is no error and no message about the opening of a webpage.

It looks like it's not using OpenGL, which is strange (and another issue entirely).
No but according this debug message, it's "normal": Xlib: extension "GLX" missing on display ":0".. It means that OpenGL is not supported.

When launching this command, did it open a new webpage (Google home page) on your browser?
python -c "import webbrowser; webbrowser.open('http://google.com')"

Guest, Thursday 23 May 2013 à 01:16

That command did open a new tab in my browser.

The bug is still produced when I launch cairo from the terminal. When I click on the links that the google search plugin lists (in this case I searched for 'cairo dock', I get the following error:
xdg-open: file '/url?q=http://glx-dock.org/&sa=U&ei=mlGdUe6ZEcq9yQHa7YAI&ved=0CBkQFjAA&usg=AFQjCNEjwdvJ_K2RUXksMz6MflkEQWsSYg' does not exist

matttbe, Thursday 23 May 2013 à 12:06


Subscription date : 24 January 2009
Messages : 12573
Strange, I don't have this problem (Are you in a country which filters the content of your webpages? )

Can you add this line
                print (name ": " value)
just below
            for namevalue in attrs:
(line 32) in this file: ~/.config/cairo-dock/third-party/Google/GoogleParser.py.

You have to respect the same indentation:
    def start_a(selfattrs):
        if 
self.inside_h3_element:
            
self.inside_h3_a_element True
            
for namevalue in attrs:
                print (
name ": " value)
                if 
name == "href":
                    
self.urls.append(value)


Then relaunch the dock from a terminal and reproduce this bug

Guest, Friday 24 May 2013 à 03:59

I'm in the U.S., I don't think it has anything to do with filtering of content.

I added that line to the python file. Here is the output I am getting when I type a keyword ("cairo-dock", in this case) into the google search plugin:
href: /url?q=http://glx-dock.org/&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CBkQFjAA&usg=AFQjCNE594oDYP8TleeQVwd9aypRYBMCKg
class: sla
href: /url?q=http://glx-dock.org/ww_page.php%3Flang%3Den&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CB4QjBAwAQ&usg=AFQjCNEAQ1OthDxN7vCnHO59LFyf-8SQ1A
class: sla
href: /url?q=http://glx-dock.org/mc_applets.php&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CCAQjBAwAw&usg=AFQjCNEC-uOwX-Qse22W8QT60T5oeJXEZw
class: sla
href: /url?q=http://glx-dock.org/mc_album.php%3Fa%3D3&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CCIQjBAwAg&usg=AFQjCNFE906CDFswRf3JmdPWZq-oxiIdMw
class: sla
href: /url?q=http://glx-dock.org/mc_album.php%3Fa%3D4&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CCQQjBAwBA&usg=AFQjCNFWDG3tNQrMtYDcyN7FWYLUi30ouw
href: /url?q=https://launchpad.net/cairo-dock&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CCcQFjAF&usg=AFQjCNHxuc-Plb9gB8GkZ29bur_aThqAVw
href: /url?q=https://help.ubuntu.com/community/CairoDock&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CCsQFjAG&usg=AFQjCNFL8Qiv2dfPbVoLUCXShLXETKRoEA
href: /images?q=cairo-dock&hl=en&sa=X&oi=image_result_group&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CDAQsAQ
href: /url?q=http://www.youtube.com/watch%3Fv%3DjDCNHuARp2Y&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CD0QtwIwDA&usg=AFQjCNEpCMpFILs5UwWXnZSyWE2vR7__RA
href: /url?q=http://www.noobslab.com/2012/10/install-cairo-dock-31-in-ubuntu.html&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CEEQFjAN&usg=AFQjCNHpEeML44y3GqgS3_vv27Hrr0t7EA
href: /url?q=http://www.webupd8.org/2012/10/cairo-dock-31-released-with-better.html&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CEUQFjAO&usg=AFQjCNEgNsIogdSiJae6W64EioMGS8ckYg
href: /url?q=http://www.howtoforge.com/how-to-use-glx-dock-cairo-dock-on-ubuntu-12.04&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CEkQFjAP&usg=AFQjCNGChPHuWx7wmu-uq93XgAz3LMcQ6Q
xdg-open: file '/url?q=http://glx-dock.org/&sa=U&ei=gMieUf-eMKLF0QHrvICQBQ&ved=0CBkQFjAA&usg=AFQjCNE594oDYP8TleeQVwd9aypRYBMCKg' does not exist


The last line is in response to me clicking on one of the search results.

matttbe, Friday 24 May 2013 à 12:18


Subscription date : 24 January 2009
Messages : 12573
I'm in the U.S., I don't think it has anything to do with filtering of content.
No but it's seems you're more tracked than me (these links (/url?q=(...)) are used by Google to know which one you've used)

I think this bug should now be fixed! May you confirm?
Simply replace your file: ~/.config/cairo-dock/third-party/Google/GoogleParser.py by this one: GoogleParser.py. Then disable and re-enable this applet

Guest, Saturday 25 May 2013 à 02:02

matttbe :
I think this bug should now be fixed! May you confirm?


Works like a charm! Thank you very much for your help, matttbe, it is appreciated.

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Google search plugin doesn't open links in browser
Guest 10


Glx-Dock / Cairo-Dock List of forums Applets | Applets Google search plugin doesn't open links in browser Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.