Added Winetricks setting option
This commit is contained in:
parent
293b06cb57
commit
9e295c5dfb
26
launch.sh
26
launch.sh
|
@ -4,6 +4,7 @@ export WORLDSDIR="$(dirname "$(readlink -f "$0")")"
|
||||||
export WINEPREFIX=$WORLDSDIR/prefix
|
export WINEPREFIX=$WORLDSDIR/prefix
|
||||||
export WORLDSINSTALL="$WINEPREFIX/drive_c/Program Files/Worlds/WorldsPlayer by Worlds.com"
|
export WORLDSINSTALL="$WINEPREFIX/drive_c/Program Files/Worlds/WorldsPlayer by Worlds.com"
|
||||||
export SETTHEME="DEFAULT"
|
export SETTHEME="DEFAULT"
|
||||||
|
export WINE="/usr/bin/wine"
|
||||||
|
|
||||||
mkdir -p $WORLDSDIR/backups $WORLDSDIR/themes
|
mkdir -p $WORLDSDIR/backups $WORLDSDIR/themes
|
||||||
|
|
||||||
|
@ -40,19 +41,19 @@ main() {
|
||||||
'Open Worlds folder')
|
'Open Worlds folder')
|
||||||
gio open "$WORLDSINSTALL" ;;
|
gio open "$WORLDSINSTALL" ;;
|
||||||
'Settings' )
|
'Settings' )
|
||||||
settings
|
settings
|
||||||
main ;;
|
main ;;
|
||||||
'Clear Cache')
|
'Clear Cache')
|
||||||
cache
|
cache
|
||||||
main ;;
|
main ;;
|
||||||
'Force Kill' )
|
'Force Kill' )
|
||||||
killw
|
killw
|
||||||
main ;;
|
main ;;
|
||||||
'Open Github page' )
|
'Open Github page' )
|
||||||
xdg-open "https://github.com/Vencorr/Worlds-LinuxScript"
|
xdg-open "https://github.com/Vencorr/Worlds-LinuxScript"
|
||||||
main ;;
|
main ;;
|
||||||
esac
|
esac
|
||||||
if [ "$?" != 0 ]
|
if [ "$?" != 0 ]
|
||||||
then
|
then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
@ -78,8 +79,8 @@ settings () {
|
||||||
"Worlds Location" "$WORLDSINSTALL" \
|
"Worlds Location" "$WORLDSINSTALL" \
|
||||||
"Edit worlds.ini" "" \
|
"Edit worlds.ini" "" \
|
||||||
"Wine Configuration" "" \
|
"Wine Configuration" "" \
|
||||||
|
"Winetricks" "" \
|
||||||
"Set Theme" "$SETTHEME" \
|
"Set Theme" "$SETTHEME" \
|
||||||
"Install Theme" "" \
|
|
||||||
"Backup" "" \
|
"Backup" "" \
|
||||||
"Restore" "" \
|
"Restore" "" \
|
||||||
2>/dev/null)
|
2>/dev/null)
|
||||||
|
@ -108,14 +109,17 @@ settings () {
|
||||||
'Wine Configuration')
|
'Wine Configuration')
|
||||||
"$WINE"cfg
|
"$WINE"cfg
|
||||||
settings ;;
|
settings ;;
|
||||||
|
'Winetricks')
|
||||||
|
winetricks
|
||||||
|
settings ;;
|
||||||
'Set Theme')
|
'Set Theme')
|
||||||
theme
|
theme
|
||||||
settings ;;
|
settings ;;
|
||||||
'Backup')
|
'Backup')
|
||||||
backup
|
backup
|
||||||
settings ;;
|
settings ;;
|
||||||
'Restore')
|
'Restore')
|
||||||
restore
|
restore
|
||||||
settings ;;
|
settings ;;
|
||||||
esac
|
esac
|
||||||
echo "# Configuration for Worlds on Linux." > "$WORLDSDIR/wrldslinux"
|
echo "# Configuration for Worlds on Linux." > "$WORLDSDIR/wrldslinux"
|
||||||
|
@ -149,8 +153,8 @@ theme () {
|
||||||
)
|
)
|
||||||
declare -A map
|
declare -A map
|
||||||
for key in "${!acceptimg[@]}"; do map[${acceptimg[$key]}]="$key"; done
|
for key in "${!acceptimg[@]}"; do map[${acceptimg[$key]}]="$key"; done
|
||||||
|
|
||||||
|
|
||||||
mkdir -p "$WORLDSDIR/themes"
|
mkdir -p "$WORLDSDIR/themes"
|
||||||
cd "$WORLDSDIR/themes"
|
cd "$WORLDSDIR/themes"
|
||||||
# Due to some bug, this won't even accept a directory despite the option being defined. Instead using text entry.
|
# Due to some bug, this won't even accept a directory despite the option being defined. Instead using text entry.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user