
Untitled
By: a guest on
Aug 30th, 2010 | syntax:
Bash | size: 0.56 KB | hits: 120 | expires: Never
## Build a custom array of depends based on what DE is installed
if [ `which kdeinit4 2> /dev/null` ]; then
# KDE
depends=( ${depends[@]} 'xorg-utils' 'pyqt' 'kdebindings-python')
_type=( ${_type[@]} kde4 )
fi
if [ `which gnome-session 2> /dev/null` ]; then
# Gnome
depends=( ${depends[@]} 'pygtk' 'python-notify' 'gnome-python' 'meld' )
_type=( ${_type[@]} gnome )
else
# Default to Gnome (less deps for users without KDE or Gnome)
depends=( ${depends[@]} 'pygtk' 'python-notify' 'gnome-python' 'meld' )
_type=( ${_type[@]} gnome )
fi