#!/bin/bash

winebin=/usr/bin/wine.bin
winesetup=wine-setup

if [ ! -e ${HOME}/.wine/config ]; then
    echo "ERROR: Wine configuration file (~/.wine/config) was not found!"
    echo "Please setup wine configurations by running \"${winesetup}\" as follows"
    echo "ex) $winesetup local ${HOME}/wine"
    echo "or" 
    echo "Copy /usr/share/config-sample/wine.conf to ~/.wine/config" 
    echo "and edit the [Drive C] entry which points fake-windows directory"
    echo ""
fi

$winebin "$@"

