X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/8cb77587a4549199a9ca7f422b399fe66e167503..524c255ee74e27a44d27a252324941a2767fa85f:/bin/wine?ds=sidebyside diff --git a/bin/wine b/bin/wine deleted file mode 100755 index a7dafbb..0000000 --- a/bin/wine +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -WINE_HOME=/mnt/data/wineprefixes/wine_home - -WINE=/usr/bin/wine -export WINEARCH=${WINEARCH:-win32} - -if [[ ! -d "$WINE_HOME" ]]; then - echo "'$WINE_HOME' does not exist, please create it first" - exit 1 -fi - -if [[ ! -d "$WINEPREFIX" ]]; then - 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 -fi - -$WINE "$@"