Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 30th, 2010  |  syntax: Bash  |  size: 0.56 KB  |  views: 127  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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