summarylogtreecommitdiffstats
path: root/anituner
blob: 971fe682d0346beee6988c664234b582002d5736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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" "$@"