From 2be0daf7e05d9b0708f2c4f7a2e46f913ee2cd38 Mon Sep 17 00:00:00 2001 From: Andrew Klapp Date: Sat, 2 Jun 2018 21:08:14 -0500 Subject: [PATCH] Massively simplified wine starter template. --- wine_starter_template.sh | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/wine_starter_template.sh b/wine_starter_template.sh index 2ba85be..b6965e7 100755 --- a/wine_starter_template.sh +++ b/wine_starter_template.sh @@ -1,16 +1,6 @@ #!/usr/bin/env sh -configure() -{ - # The WINEPREFIX for the program - WINEPREFIX="" - # The path to the exe starting from your prefix's dosdevices folder. - # example: "c:/GOG Games/Some Game/startTheGame.exe" - native_path="" -} +WINEPREFIX="${HOME}/.local" +wine_path="C:/" -configure -wine_exec_full="${WINEPREFIX}/dosdevices/${native_path}" -# TODO: Print a useful error message when the path is wrong. -cd "$(dirname "${wine_exec_full}")" || exit 1 -wine "./$(basename "${wine_exec_full}")" +env WINEPREFIX="${WINEPREFIX}" wine start "${wine_path}"