PDA

View Full Version : How to specify compiz start options in fusion icon


gorf
January 2nd, 2008, 09:40 AM
Ubunut 7.10
i would like to autolaunch compiz when i log in. I have registered fusion-icon as a startup program, but in order to get compiz to work i need to start it like:
LIBGL_ALWAYS_INDIRECT=1 compiz --replace --indirect-rendering --sm-disable ccp

How can i change the command issued by fusion icon when selecting compiz as the window manager? Currently it executes:
compiz.real --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering

which doesn't work correctly.

thanks in advance

Deciare
January 2nd, 2008, 07:53 PM
Starting fusion-icon with that variable in the environment should have the same effect:
LIBGL_ALWAYS_INDIRECT=1 fusion-icon
Depending on whether your session manager supports specifying environment variables on the command line, you may have to create a script that sets that variable, then runs fusion-icon.

some-guy
January 3rd, 2008, 01:33 AM
Ubuntu renames the real compiz binary to compiz.real, fusion-icon checks for it and passes the parameters to that, rather than a wrapper :)

gorf
January 3rd, 2008, 02:04 AM
Maybe i am confused, but the issue isn't the initial time i start fusion icon, it is when i change window managers. How do i change the command issued to start the various window managers, e.g. compiz?

gorf
January 3rd, 2008, 02:50 AM
i installed cf from git source (0.6) using the git4cf automator (http://elemongw.exofire.net/projects/linux-section/git4cf-automator/) on ubuntu. /usr/bin/compiz (version 0.6.3) and /usr/bin/compiz.real (version 0.6.1) are both binary files. if i use compiz, cf will start successfully, if i use compiz.real it won't. should i just symlink compiz.real to compiz or am i missing something?

adamk
January 3rd, 2008, 11:16 AM
gorf, you should really have removed the version of compiz that came with Ubuntu 7.10, especially seeing how you installed the git version to the same prefix as the preinstalled version. You will likely have versioning issues between compiz and the various libraries or plugins.

Adam

Deciare
January 4th, 2008, 03:20 PM
Maybe i am confused, but the issue isn't the initial time i start fusion icon, it is when i change window managers. How do i change the command issued to start the various window managers, e.g. compiz?
As long as LIBGL_ALWAYS_INDIRECT=1 is present in fusion-icon's environment, it will be passed to any window manager started by fusion-icon. There are multiple versions of fusion-icon being passed around by multiple distributors, so it's simpler to do it this way than to edit the Python scripts directly. It also saves you the trouble of having to re-edit whenever fusion-icon is updated.

If you must edit the scripts, ensure that the following line is processed somewhere before the line that starts Compiz:
os.environ['LIBGL_ALWAYS_INDIRECT'] = '1'