Bug 7032

Summary: Have to change $DISPLAY when restarting compiz.
Product: xorg Reporter: Sebastian Noack <sebastian.noack>
Component: App/compizAssignee: David Reveman <reveman>
Status: RESOLVED NOTOURBUG QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high    
Version: 7.0 (2005.12)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Sebastian Noack 2006-05-25 18:48:07 UTC
Hi,

if I start Xgl and compiz after boot, anything seems to work fine but when I
kill the xserver by Ctrl+Alt+Backpace and invoke my script which stats Xgl  and
compiz (startxgl, see below) again, Xgl starts as well but compiz doesn't. I
figured out that I have to change the DISPLAY envoironment variable to start
compiz again.

Here are my self-written scripts to invoke Xgl and compiz:

/usr/local/bin/startxgl
--------------------------------------------------------------------------------
#!/bin/bash

Xgl $DISPLAY -ac -accel glx:fbo -accel xv:fbo -nolisten tcp &
compizrc
--------------------------------------------------------------------------------

/usr/local/bin/compizrc
--------------------------------------------------------------------------------
#!/bin/bash

if [ `ps -A | grep Xgl | wc -l` == "1" ]; then
        LD_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/lib/ compiz gconf &
        gnome-window-decorator &
        if [ -e ~/.compiz/startup ]; then
                /bin/bash ~/.compiz/startup
        fi
else
        exit 1
fi
--------------------------------------------------------------------------------

~/.compiz/startup
--------------------------------------------------------------------------------
exec Esetroot -bgcolor "#efebe7ff" ~/.compiz/bg.png &
exec gkrellm2 &
--------------------------------------------------------------------------------

I set the DISPLAY environment variable in /etc/profile to ":1".

Regards
Sebastian Noack
Comment 1 Daniel Stone 2007-02-27 01:32:12 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 2 Kristian Lyngstøl 2009-02-03 12:04:14 UTC
This is really an Xgl issue, not Compiz. I do belive Xgl allows you to set the display-variable to use, but at any rate, this bug doesn't belong here. Feel free to bring this up at the compiz developer list (which is moving...) or open a bug somewhere at bugs.opencompositing.org if you still have issues with this in 2009 :)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.