mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
14 lines
489 B
Bash
14 lines
489 B
Bash
#!/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="$(dialog --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 "$@"
|