summarylogtreecommitdiffstats
path: root/bsnes
diff options
context:
space:
mode:
authorVaporeon2015-10-29 03:09:05 +1300
committerVaporeon2015-10-29 03:09:05 +1300
commit5c4d5a60126be904043039271118fdd15f201929 (patch)
tree9a8f14feb65081afd558bbd6f2f55a1acf9725ea /bsnes
parentb8e3cb1b91f3b1a3b062387f9fcbd2b7e6327524 (diff)
downloadaur-5c4d5a60126be904043039271118fdd15f201929.tar.gz
use zenity
Diffstat (limited to 'bsnes')
-rw-r--r--bsnes10
1 files changed, 3 insertions, 7 deletions
diff --git a/bsnes b/bsnes
index 20fb57021421..0177b95fb234 100644
--- a/bsnes
+++ b/bsnes
@@ -1,10 +1,6 @@
#!/bin/sh
-# Check for profiles and prompt user with a GUI
-[ -e /usr/bin/bsnes-accuracy ] && tag1=accuracy
-[ -e /usr/bin/bsnes-compatibility ] && tag2=compatibility
-[ -e /usr/bin/bsnes-performance ] && tag3=performance
-profile="$(Xdialog --stdout --no-tags --title "bsnes-classic" --radiolist "Choose a profile" 0 0 0 "$tag1" "Accuracy" off "$tag2" "Compatibility" off "$tag3" "Performance" off)"
-
+# Prompt for profile
+profile="$(zenity --list --radiolist --title 'Please select a profile' --column '' --column '' FALSE 'accuracy' TRUE 'compatibility' FALSE 'performance')"
# Launch selected profile
-exec bsnes-$profile "$@" \ No newline at end of file
+[[ -n $profile ]] && exec bsnes-$profile "$@"