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 "$@"