#!/bin/sh # Compiz Fusion Icon Wrapper Script frontend="" # Set to gtk, qt3 (currently not installed by default), or qt4 to override autodetection datadir=$(dirname $0)/../share/fusion-icon if [[ -z $frontend ]]; then if [[ -n $(ps -A | grep gnome-session) ]] && [[ -f $datadir/fusion-icon-gtk.py ]] && python -c 'import pygtk'; then frontend=gtk elif [[ -n $(ps -A | grep dcop) ]]; then if [[ -f $datadir/fusion-icon-qt4.py ]] && python -c 'import PyQt4'; then frontend=qt4 elif [[ -f $datadir/fusion-icon-qt3.py ]] && python -c 'import qt'; then frontend=qt3 fi elif [[ -f $datadir/fusion-icon-gtk.py ]] && python -c 'import pygtk'; then frontend=gtk elif [[ -f $datadir/fusion-icon-qt4.py ]] && python -c 'import PyQt4'; then frontend=qt4 elif [[ -f $datadir/fusion-icon-qt3.py ]] && python -c 'import qt'; then frontend=qt3 else echo "error: no frontends installed" exit 1 fi fi python $datadir/fusion-icon-$frontend.py