PDA

View Full Version : multiple compiz-tray-icon instances


matkins75
December 11th, 2006, 07:15 PM
First off, I'm running openSUSE 10.2 w/ kde.

I've set up compiz to autostart using the desktop file and complimentary compiz, startcompiz scripts from the following post by gnumdk in the "[HOWTO] compiz compile/install/setup for nvidia-users" thread:

On kde, the good method is:

gnumdk@lisa:~$ cat /usr/share/xsessions/compiz.desktop
[Desktop Entry]
Encoding=UTF-8
Type=XSession
Exec=/usr/bin/startcompiz
TryExec=/usr/bin/startcompiz
Name=Compiz

gnumdk@lisa:~$ cat /usr/bin/compiz.sh
#!/bin/bash
export __GL_YIELD="NOTHING"
/usr/bin/gtk-window-decorator &
/usr/bin/compiz --use-cow --replace gconf 2>~/.compiz.log

gnumdk@lisa:~$ cat /usr/bin/startcompiz
#!/bin/bash
export KDEWM=/usr/bin/compiz.sh
/usr/bin/startkde

Each subsequent time logging into kde, there's an additional compiz-tray-icon in the tray which I promptly kill, leaving only one active. If I don't kill the extras, I could easily have 5 or more compiz-tray-icons after a few logins.

Searched the forum...didn't see this as a topic. Could my autostart method be causing this? Thanks all.

mikedee
December 11th, 2006, 07:23 PM
It could be kde restoring your session.

Try going to Control Panel > KDE Components > Session Manager, then add compiz-tray-icon to the list of applications to be excluded.

I launch compiz just by setting the KDEWM variable to my compiz startup script and then running KDE as normal, I do not use a desktop startup file for it. To start the tray manager, just link it to ~/.kde/Autostart/compiz-tray-icon. ie

ln -s /usr/bin/compiz-tray-icon ~/.kde/Autostart/compiz-tray-icon