Advertisement
Guest User

Untitled

a guest
Aug 30th, 2010
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement