home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / bin / envy < prev    next >
Encoding:
Text File  |  2007-03-04  |  659 b   |  27 lines

  1. #!/bin/bash
  2.  
  3.  
  4. case $1 in
  5.     "-t")
  6.         cd /usr/share/envy
  7.         sudo python interface.py
  8.         ;;
  9.     "-g")
  10.         if echo $KDE_FULL_SESSION | grep true
  11.         then
  12.             cd /usr/share/envy
  13.             kdesu -c "/usr/share/envy/gtkenvy.py $USER $HOME $UID --kde_desktop $1" -d
  14.         else
  15.             cd /usr/share/envy
  16.             gksudo --message "Please enter your admin password to start Envy" "/usr/share/envy/gtkenvy.py $USER $HOME $UID $1"
  17.         fi
  18.         ;;
  19.     *)
  20.         echo "ERROR: you need to provide a parameter:"
  21.         echo '   "-t" for the textual interface'
  22.         echo '   "-g" for the GTK frontend'
  23.         ;;
  24. esac
  25.  
  26.  
  27.