How to modify compiz fusion's autostart

Asked by Jean Azzopardi

I am using Gutsy 7.10, and compiz fusion is starting automatically. However, it is using direct-rendering, which gives me the black window Nvidia bug. How can I modify this startup script to make it run compiz --indirect-rendering instead?

And I looked in System -> Preferences -> Sessions, nothing related to compiz there.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu compiz Edit question
Assignee:
No assignee Edit question
Solved by:
Bryan Haskins
Solved:
Last query:
Last reply:
Revision history for this message
Best Bryan Haskins (bryan-h) said :
#1

This isn't really a real answer... I mean it'll get the job done... but there you have it.
gksu gedit /usr/bin/compiz

right at the very bottom it says:
${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || exec $FALLBACKWM $FALLBACKWM_OPTIONS

Try:
${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS --indirect-rendering "$@" $COMPIZ_PLUGINS || exec $FALLBACKWM $FALLBACKWM_OPTIONS

In place of it.
This changes what it run at the end so even if the script sees that you should run with direct rendering, the final exec line has it within. Easier than hacking up the actual script.

Revision history for this message
Jean Azzopardi (aragorn-waldonet) said :
#2

Thanks for the answer. I've also tried the suggestions in this site : http://forum.compiz-fusion.org/showthread.php?t=2153

Revision history for this message
Jean Azzopardi (aragorn-waldonet) said :
#3

Thanks Bryan Haskins, that solved my question.