View Full Version : Settings reset at each login
dotancohen
January 10th, 2008, 07:38 AM
At each login I must run "kde-window-decorator --replace &" to have KDE manage my windows, and then hit "CTRL-P" to enable the ADD Helper. How can I have Compiz-Fusion remember these details by itself?
As a workaround, I run "kde-window-decorator --replace &" automatically in a script at each login, but the CTRL-P I cannot run automatically.
Deciare
January 10th, 2008, 07:57 PM
If you have both the Dbus plugin enabled and a valid D-Bus session, you can try using this command to trigger ADD Helper:
dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/addhelper/allscreens/toggle_key org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'`
If that doesn't work, also try:
dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/addhelper/allscreens/toggle org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'`
With regard to starting kde-window-decorator at startup, try setting ccsm->Window Decoration->Command to "kde-window-decorator --replace". If that doesn't work, your distribution's Compiz start script is probably auto-starting another decorator; which distribution do you use?
dotancohen
January 11th, 2008, 02:35 PM
Thanks. As for starting the ADD helper, the second solution worked. I already have "kde-window-decorator --replace" in ccsm->Window Decoration->Command. I'm on Ubuntu, but I've installed the KDE desktop and use that. This is my compiz start script, which I took from some blog:
feisty@feisty-laptop:~$ cat /usr/local/bin/startcompiz
#!/bin/bash
# # Start beryl-manager within gnome-session #
if (( `ps -A -o comm | grep -c '^Xgl$'` == "1" )); then DISPLAY=:1 gnome-settings-daemon & DISPLAY=:1 compiz --replace else echo "${0}: Error: compiz not launched. Xgl not running?" fi
feisty@feisty-laptop:~$
Of course, I see the code that I have to change, but as it is all a run on line, I'm rather afraid of breaking something. Is this right:
#!/bin/bash
if (( `ps -A -o comm | grep -c '^Xgl$'` == "1" )); then
DISPLAY=:1 gnome-settings-daemon & DISPLAY=:1 compiz --replace & DISPLAY=:1 kde-window-decorator --replace &
else
echo "${0}: Error: compiz not launched. Xgl not running?"
fi
Deciare
January 11th, 2008, 07:30 PM
/usr/bin/compiz is Ubuntu's wrapper script, then? If so, you can get it to stop auto-starting Emerald by adding this line:
USE_EMERALD="no"
Into ~/.config/compiz/compiz-manager.
dotancohen
January 13th, 2008, 08:20 PM
Thank you. That file did not exist, but I created it and added the line.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.