#!/bin/bash export WINEARCH=win32 WINEPREFIX="$HOME/.anituner/wine" if [ ! -d "$HOME/.anituner" ]; then # create the directory for the wine prefix mkdir -p "$HOME/.anituner/wine" || exit 1 # copy the default configuration file cp -r /usr/share/anituner/AniTunerPrefDefault.xml "$HOME/.anituner/AniTunerPref.xml" || exit 1 # make a symlink to the executable ln -s /usr/share/anituner/AniTuner.exe "$HOME/.anituner/anituner" || exit 1 fi WINEDEBUG=-all wine "$HOME/.anituner/anituner" "$@"