summaryrefslogtreecommitdiff
path: root/pcr/higan-qt/higan
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-02-14 10:53:59 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-02-14 10:53:59 +0100
commit02e61c89c8b9d79879335bfbd66f9e6b59982848 (patch)
treefca57eeca21f97a06309051f625a2b7517b1ec71 /pcr/higan-qt/higan
parent846195ec63b8881bda11580883ec06ae821a2669 (diff)
parent0bf564cf7a3d99207457267c75f92ceb67197537 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/erlang/PKGBUILD community/ettercap/PKGBUILD community/fcitx-mozc/PKGBUILD community/libgexiv2/PKGBUILD community/xmlrpc-c/PKGBUILD extra/pidgin/PKGBUILD extra/xorg-xrandr/PKGBUILD
Diffstat (limited to 'pcr/higan-qt/higan')
-rwxr-xr-xpcr/higan-qt/higan13
1 files changed, 13 insertions, 0 deletions
diff --git a/pcr/higan-qt/higan b/pcr/higan-qt/higan
new file mode 100755
index 000000000..29fc0b7bb
--- /dev/null
+++ b/pcr/higan-qt/higan
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Shared folders workaround
+cp -ru /usr/share/higan ~/.config/
+
+# Check for profiles and prompt user with a GUI
+[ -e /usr/bin/higan-accuracy ] && tag1=accuracy
+[ -e /usr/bin/higan-balanced ] && tag2=balanced
+[ -e /usr/bin/higan-performance ] && tag3=performance
+profile="$(Xdialog --stdout --no-tags --title "higan" --radiolist "Choose a profile" 0 0 0 "$tag1" "Accuracy" off "$tag2" "Balanced" off "$tag3" "Performance" off)"
+
+# Launch selected profile
+exec higan-$profile "$@"