summarylogtreecommitdiffstats
path: root/bsnes
diff options
context:
space:
mode:
authorVaporeon2015-10-29 03:19:49 +1300
committerVaporeon2015-10-29 03:19:49 +1300
commiteaa7a2c1069dc17fe7ccd62a71e7fec8e9139f63 (patch)
tree36236b80087b007d5611636227d5abb5f8501b21 /bsnes
parent35c37d986d62994a48cdcdba10599fa839730594 (diff)
downloadaur-eaa7a2c1069dc17fe7ccd62a71e7fec8e9139f63.tar.gz
use zenity
Diffstat (limited to 'bsnes')
-rw-r--r--bsnes9
1 files changed, 3 insertions, 6 deletions
diff --git a/bsnes b/bsnes
index 226f9d04c5d..1d5a0d51438 100644
--- a/bsnes
+++ b/bsnes
@@ -1,9 +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
-profile="$(Xdialog --stdout --no-tags --title "bsnes-plus" --radiolist "Choose a profile" 0 0 "$tag1" "Accuracy" off "$tag2" "Compatibility" off)"
-
+# Prompt for profile
+profile="$(zenity --list --radiolist --title 'Please select a profile' --column '' --column '' FALSE 'accuracy' TRUE 'compatibility')"
# Launch selected profile
-exec bsnes-$profile "$@" \ No newline at end of file
+[[ -n $profile ]] && exec bsnes-$profile "$@"