]> git.pld-linux.org Git - packages/compiz.git/blame - compiz-gtk
- updated gettext BR
[packages/compiz.git] / compiz-gtk
CommitLineData
95ce3bb1
PZ
1#!/bin/bash
2
3function runCompiz() {
4 gtk-window-decorator &
5 if ( [ -e /usr/lib/compizconfig/backends/libgconf.so ] || [ -e /usr/lib64/compizconfig/backends/libgconf.so ] )
6 then
7 exec compiz --ignore-desktop-hints ccp $@
8 else
9 exec compiz --ignore-desktop-hints glib gconf gnomecompat $@
10 fi
11}
12
13ISSW=`glxinfo | grep "Software Rasterizer" -c`
14
15# Try with direct rendering
16HAVETFP=`glxinfo | grep texture_from_pixmap -c`
17
18if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
19 runCompiz $@
20fi
21
22# Try again with indirect rendering
23export LIBGL_ALWAYS_INDIRECT=1
24
25HAVETFP=`glxinfo | grep texture_from_pixmap -c`
26
27if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
28 runCompiz $@
29fi
30
31# Fall back to metacity
32exec metacity $@
This page took 0.575487 seconds and 4 git commands to generate.