summaryrefslogtreecommitdiff
path: root/templates/default
diff options
context:
space:
mode:
Diffstat (limited to 'templates/default')
-rw-r--r--templates/default15
1 files changed, 10 insertions, 5 deletions
diff --git a/templates/default b/templates/default
index 2f62395..0d1c0ea 100644
--- a/templates/default
+++ b/templates/default
@@ -4,16 +4,21 @@ default_setupX () {
play_setupX
}
+default_setenv () {
+ if loaded wine; then
+ EENV[WINEPREFIX]='{ [[ -z $NO_WINEINSTS ]] && echo $HOME/.wineinsts/$PREFIX; } || echo $PREFIX'
+ fi
+
+ play_setenv
+}
+
default_prepare () {
- play_prepare
}
default_cleanup () {
- play_cleanup
}
-EENV[WINEPREFIX]='{ [[ -z $NO_WINEINSTS ]] && echo $HOME/.wineinsts/$PREFIX; } || echo $PREFIX'
-
-EXPORT setupX prepare cleanup
+EXPORT prepare cleanup
+OVERRIDE setenv setupX
# vim:ft=sh