Bug 7032 - Have to change $DISPLAY when restarting compiz.
Summary: Have to change $DISPLAY when restarting compiz.
Alias: None
Product: xorg
Classification: Unclassified
Component: App/compiz (show other bugs)
Version: 7.0 (2005.12)
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: David Reveman
QA Contact: Xorg Project Team
Depends on:
Reported: 2006-05-25 18:48 UTC by Sebastian Noack
Modified: 2009-02-03 12:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


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

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:


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


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
        exit 1

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

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

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.