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

Higan

By: a guest on Sep 20th, 2013  |  syntax: C  |  size: 0.50 KB  |  views: 48  |  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. #!/usr/bin/env bash
  2.  
  3. # Shared folders workaround
  4. cp -ru /usr/share/higan ~/.config/
  5.  
  6. # Check for profiles and prompt user with a GUI
  7. [ -e /usr/bin/higan-accuracy ] && tag1=accuracy
  8. [ -e /usr/bin/higan-balanced ] && tag2=balanced
  9. [ -e /usr/bin/higan-performance ] && tag3=performance
  10. profile="$(Xdialog --stdout --no-tags --title "higan" --radiolist "Choose a profile" 0 0 0 "$tag1" "Accuracy" off "$tag2" "Balanced" off "$tag3" "Performance" off)"
  11.  
  12. # Launch selected profile
  13. exec higan-$profile "$@"