In /usr/bin/gnome-wm lines 49 to 66 (ubuntu intrepid beta):
----
# special case handling for dapper upgrades (this runs only once after the upgrade)
if [ -z "$DEFWM" ] && [ -f /var/lib/gnome-session/dapper-upgrade ]; then
gconftool-2 -s /desktop/gnome/applications/window_manager/default /usr/bin/metacity --type string
DEFWM=/usr/bin/metacity
fi
# If not exist, set to compiz (if available)
if [ ! -x "$DEFWM" ]; then
if [ -x "/usr/bin/compiz" ]; then
gconftool-2 -s /desktop/gnome/applications/window_manager/default /usr/bin/compiz --type string
DEFWM=/usr/bin/compiz
elif [ -x "/usr/bin/metacity" ]; then
gconftool-2 -s /desktop/gnome/applications/window_manager/default /usr/bin/metacity --type string
DEFWM=/usr/bin/metacity
else
unset DEFWM
fi
fi
----
To my mind, the special case handling for dapper upgrade should be removed (impossible to upgrade directly from dapper to intrepid). But doesn't matter.
The important thing is to call "nvidia-settings -l" :
----
# If not exist, set to compiz (if available)
if [ ! -x "$DEFWM" ]; then
if [ -x "/usr/bin/compiz" ]; then
gconftool-2 -s /desktop/gnome/applications/window_manager/default /usr/bin/compiz --type string
DEFWM=/usr/bin/compiz
if [ -x "/usr/bin/nvidia-settings" ]; then
/usr/bin/nvidia-settings -l
fi
elif [ -x "/usr/bin/metacity" ]; then
gconftool-2 -s /desktop/gnome/applications/window_manager/default /usr/bin/metacity --type string
DEFWM=/usr/bin/metacity
else
unset DEFWM
fi
fi
----
Maybe nvidia-settings -l should be called in another place, please tell me if you find a better place.
This fix is important, because users don't understand why compiz has a such bad quality, while they configure vsync and/or anisotropic and/or antialiasing in nvidia-settings.
In /usr/bin/gnome-wm lines 49 to 66 (ubuntu intrepid beta):
---- gnome-session/ dapper- upgrade ]; then gnome/applicati ons/window_ manager/ default /usr/bin/metacity --type string /usr/bin/ metacity
# special case handling for dapper upgrades (this runs only once after the upgrade)
if [ -z "$DEFWM" ] && [ -f /var/lib/
gconftool-2 -s /desktop/
DEFWM=
fi
# If not exist, set to compiz (if available) gnome/applicati ons/window_ manager/ default /usr/bin/compiz --type string /usr/bin/ compiz gnome/applicati ons/window_ manager/ default /usr/bin/metacity --type string /usr/bin/ metacity
if [ ! -x "$DEFWM" ]; then
if [ -x "/usr/bin/compiz" ]; then
gconftool-2 -s /desktop/
DEFWM=
elif [ -x "/usr/bin/metacity" ]; then
gconftool-2 -s /desktop/
DEFWM=
else
unset DEFWM
fi
fi
----
To my mind, the special case handling for dapper upgrade should be removed (impossible to upgrade directly from dapper to intrepid). But doesn't matter.
The important thing is to call "nvidia-settings -l" :
---- gnome/applicati ons/window_ manager/ default /usr/bin/compiz --type string /usr/bin/ compiz nvidia- settings" ]; then bin/nvidia- settings -l gnome/applicati ons/window_ manager/ default /usr/bin/metacity --type string /usr/bin/ metacity
# If not exist, set to compiz (if available)
if [ ! -x "$DEFWM" ]; then
if [ -x "/usr/bin/compiz" ]; then
gconftool-2 -s /desktop/
DEFWM=
if [ -x "/usr/bin/
/usr/
fi
elif [ -x "/usr/bin/metacity" ]; then
gconftool-2 -s /desktop/
DEFWM=
else
unset DEFWM
fi
fi
----
Maybe nvidia-settings -l should be called in another place, please tell me if you find a better place.
This fix is important, because users don't understand why compiz has a such bad quality, while they configure vsync and/or anisotropic and/or antialiasing in nvidia-settings.