SHARE
TWEET

Untitled

a guest Aug 30th, 2010 129 Never
  1. ## Build a custom array of depends based on what DE is installed
  2. if [ `which kdeinit4 2> /dev/null` ]; then
  3.   # KDE
  4.   depends=( ${depends[@]} 'xorg-utils' 'pyqt' 'kdebindings-python')
  5.   _type=( ${_type[@]} kde4 )
  6. fi
  7.  
  8. if [ `which gnome-session 2> /dev/null` ]; then
  9.   # Gnome
  10.   depends=( ${depends[@]} 'pygtk' 'python-notify' 'gnome-python' 'meld' )
  11.   _type=( ${_type[@]} gnome )
  12. else
  13.   # Default to Gnome (less deps for users without KDE or Gnome)
  14.   depends=( ${depends[@]} 'pygtk' 'python-notify' 'gnome-python' 'meld' )
  15.   _type=( ${_type[@]} gnome )
  16. fi
RAW Paste Data
Top