Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Dock is running twice
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)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Dock is running twice
roygbiv English 6 roygbiv [Read]
13 June 2011 à 12:19

roygbiv, Sunday 12 June 2011 à 00:50


Subscription date : 09 June 2011
Messages : 7
I'm using cairo-composite manager along with cairo-dock, with no transparency emulating and a 1.400 icon zoom effect. The transparency is working like a charm, but the dock draws both the zoomed and normal size icons on mouse over. Why is this happening? Using only one dock. I haven't found any useful info on the web yet.

Edit: Added some info.

matttbe, Sunday 12 June 2011 à 18:24


Subscription date : 24 January 2009
Messages : 12573
Hello,

I guess you're sure that Cairo-Dock is only launched once (ps command can help you) but do you use the fake transparency (System module of the config panel (Advanced mode) of the dock)?

roygbiv, Monday 13 June 2011 à 07:34


Subscription date : 09 June 2011
Messages : 7
Thank you for pointing me in the right direction. When I ran top, cario-dock appeared twice in the process list. This is strange because I'm only starting cairo-dock once in autostart.sh (using openbox)

cairo-dock -o &
.

relevant part of pstree:


??slim -d
? ??X -nolisten tcp vt07 -auth /var/run/slim.auth
? ??ck-launch-sessi openbox-session
? ??openbox
? ? ??cairo-compmgr
? ? ??cairo-dock -o
? ? ??gnome-terminal
? ? ??bash
? ? ? ??firefox
? ? ? ??plugin-containe /usr/lib/mozilla/plugins/npwrapper.libflashplayer.so -grebase /usr/lib/xulrunner-2.0 ...
? ? ? ? ??npviewer.bin --plugin /usr/lib32/mozilla/plugins/libflashplayer.so --connection/org/wrapper/NSPlug
? ? ? ? ??{plugin-contain}
? ? ? ??25*[{firefox}]
? ? ??bash
? ? ? ??pstree -a
? ? ??bash
? ? ??gnome-pty-helpe
? ? ??3*[{gnome-terminal}]
? ??(sh)
? ??xscreensaver -no-splash
? ??(xsetroot)

But I noticed something strange in top (both cario and opengl backend is running):

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2834 herman 20 0 308m 35m 10m S 3 0.6 0:39.45 cairo-compmgr
2835 herman 20 0 588m 51m 22m S 2 0.9 0:07.47 cairo-dock -o <==
2832 herman 20 0 473m 30m 20m S 1 0.5 0:04.55 cairo-dock -c <==
2862 herman 20 0 276m 15m 9.8m S 1 0.3 0:00.99 gnome-terminal
2911 herman 20 0 611m 129m 33m S 0 2.2 0:38.79 firefox
4126 herman 20 0 10768 1200 932 R 0 0.0 0:00.01 top
2798 herman 20 0 12504 648 528 S 0 0.0 0:00.00 ck-launch-session openbox-session
2802 herman 20 0 50116 2396 1728 S 0 0.0 0:00.36 xscreensaver -no-splash
2803 herman 20 0 0 0 0 Z 0 0.0 0:00.00 [xsetroot] <defunct>
2804 herman 20 0 0 0 0 Z 0 0.0 0:00.00 [sh] <defunct>
2814 herman 20 0 95920 9172 5708 S 0 0.2 0:00.38 /usr/bin/openbox
2825 herman 20 0 19832 548 336 S 0 0.0 0:00.00 dbus-launch --sh-syntax --exit-with-session
2826 herman 20 0 12892 1064 848 S 0 0.0 0:00.00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
2833 herman 20 0 203m 23m 10m S 0 0.4 0:00.15 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
2866 herman 20 0 46464 3352 2428 S 0 0.1 0:00.01 /usr/lib/GConf/gconfd-2
2868 herman 20 0 8040 672 556 S 0 0.0 0:00.00 gnome-pty-helper
2870 herman 20 0 16804 2228 1612 S 0 0.0 0:00.00 bash
2985 herman 20 0 196m 15m 11m S 0 0.3 0:00.14 /usr/lib/xulrunner-2.0/plugin-container /usr/lib/mozilla/plugins/npwrapper
3006 herman 20 0 61100 14m 9692 S 0 0.2 0:01.31 /usr/lib/nspluginwrapper/i386/linux/npviewer.bin --plugin /usr/lib32/mozil
3091 herman 20 0 16804 2240 1624 S 0 0.0 0:00.00 bash
3723 herman 20 0 16804 2272 1620 S 0 0.0 0:00.02 bash


If I kill the cairo-dock -c process (kill 2832), one dock is used and it works as it should.'

Edit: Added info

roygbiv, Monday 13 June 2011 à 11:10


Subscription date : 09 June 2011
Messages : 7
matttbe :
Hello,

I guess you're sure that Cairo-Dock is only launched once (ps command can help you) but do you use the fake transparency (System module of the config panel (Advanced mode) of the dock)?


I don't use fake transparency - cairo-compmgr does that for me.

I can remember running cairo-dock for the first time and after choosing not to use OpenGL, I right-clicked the menu on the dock allowing me to choose something like "start up automatically at startup". How can I reverse that process? Might this be the problem?

matttbe, Monday 13 June 2011 à 11:18


Subscription date : 24 January 2009
Messages : 12573
it seems "cairo-dock -c" is launched before "cairo-dock -o" and cairo-compmgr
I think that a Cairo-Dock launcher has been added somewhere and it's launched by OpenBox.

Can you check if there is any Cairo-Dock launcher in this folder: ~/.config/autostart/
Or can you launch this command?
grep -r "cairo-dock -c" ~

Can you also check if you "save your session" (in order to have the same applications at startup.

roygbiv, Monday 13 June 2011 à 11:52


Subscription date : 09 June 2011
Messages : 7
matttbe :
it seems "cairo-dock -c" is launched before "cairo-dock -o" and cairo-compmgr
I think that a Cairo-Dock launcher has been added somewhere and it's launched by OpenBox.

Can you check if there is any Cairo-Dock launcher in this folder: ~/.config/autostart/

There is only this line

cairo-dock -o


Can you also check if you "save your session" (in order to have the same applications at startup.


Using openbox-session on Arch Linux, without a session manager I cannot save sessions so this is not the problem. Quote from openbox-session man page: "openbox-session runs an openbox session without any session manager. Without a session manager, you will not be able to save your state from one log in to the next."

Or can you launch this command?
grep -r "cairo-dock -c" ~


Yes! Searched and found the file

$HOME/.config/autostart/cairo-dock-cairo.desktop

I believe it was created by cario-dock when I choosed "automatically startup" from the menu. It contained this line

Exec=cairo-dock -c


Deleting the file and re-login solved the problem. Now it is only one instance running and with the right parameter (OpenGL). Maybe this is important to add to the wiki, as it may also happen in the future?
Thanks.

Edit: Typos

roygbiv, Monday 13 June 2011 à 12:19


Subscription date : 09 June 2011
Messages : 7
Wiki section added.

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Dock is running twice
roygbiv English 6 roygbiv [Read]
13 June 2011 à 12:19


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Dock is running twice 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.