PDA

View Full Version : Compiz doesn't load on start


jej2003
March 10th, 2007, 05:26 AM
I am having some issue getting compiz to load on start of gnome. Right now I get the gnome-tray-icon and enable gl desktop is enabled but it is not working. I need to type

LIBGL_ALWAYS_INDIRECT=1 compiz --replace --indirect-rendering gconf &

to get it to run. Is there a way to do this automatically?

olmec
March 19th, 2007, 09:43 AM
I can click on

system > preferneces > gl desktop

and activate t this way but would be nice to be automatic.

RYX
March 19th, 2007, 03:09 PM
Alternatively you can put the command(s) into a textfile (like in $HOME/bin/go-compiz) and make that file executable (chmod a+x $HOME/bin/go-compiz).

Then you can simply add it (/home/*yourname*/bin/go-compiz) to your gnome-session (on the gnome-panel go to System:Settings:Sessions - Startup Programs - Add). Don't forget to hit Activate-button after adding :) ...

It really depends on your graphics hardware which commandline suits best for you. Your startup-file could look like this:
#!/bin/bash
# start compiz
LIBGL_ALWAYS_INDIRECT=1 compiz --replace --indirect-rendering gconf &
# start gwd
gtk-window-decorator --replace &


To avoid awfully long startup-times of gnome (splashscreen hangs for a minute or so), remove metacity from the current session (in gnome-session-properties) - otherwise it somehow conflicts with compiz.

I hope that helps ...

(I know there is another way by setting compiz as gnome's default WM - David has mentioned it on the mailinglist somewhen).

:)