rendered paste bodyFile: /usr/share/xsessions/xgl.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application
File: /usr/bin/startxgl.sh
#!/bin/sh
fontpath=`grep -i fontpath /etc/X11/xorg.conf | egrep -v "[:space:]*#" | sed "s/.\+\"\(.\+\)\"/\1,/g" | xargs echo | sed "s/\ //g" | sed "s/,\$//"`
Xgl :1 -fullscreen -br -ac -accel glx:pbuffer -accel xv:pbuffer -fp $fontpath &
#Xgl :1 -ac -accel glx:pbuffer -accel xv:pbuffer &
DISPLAY=:1 compiz --replace gconf &
DISPLAY=:1 cgwd --replace && > ~/cgwd-window.log 2>&1 &
DISPLAY=:1 startkde
File: /.kde/Autostart/startxgl
#!/bin/bash
checkps=`ps aux | grep Xgl | grep -v grep`
echo $checkps
if [ "$checkps" == "" ]; then
#no need for compiz
exit 0
else
sleep 5
/usr/bin/compiz-start
fi