From c65b6c2d1f7a03ab75834a38809cba7e91f4ab94 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 31 Oct 2012 16:21:19 +0100 Subject: [PATCH] only set HOME in wine --- bin/wine | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/bin/wine b/bin/wine index 848e73b..bca1184 100755 --- a/bin/wine +++ b/bin/wine @@ -4,17 +4,4 @@ WINE_HOME=/mnt/sdd5/wineprefixes/wine_home WINE=/usr/bin/wine -if [[ ! -d "$WINE_HOME" ]]; then - echo "'$WINE_HOME' does not exist, please create it first" - exit 1 -fi - -[[ -d "$WINEPREFIX" ]] || wineboot -i - -declare -a DIRS=('Desktop' 'My Documents' 'My Music' 'My Pictures' 'My Videos') -for DIR in "${DIRS[@]}"; do - [[ ! -d "$WINE_HOME/$DIR" ]] && mkdir "$WINE_HOME/$DIR" - ln -sfT "$WINE_HOME/$DIR" "$WINEPREFIX/drive_c/users/$USER/$DIR" -done - -$WINE "$@" +WINEARCH=${WINEARCH:-win32} HOME="$WINE_HOME" $WINE "$@" -- 2.48.1