#!/bin/sh -e
EXEC_DIR=~/utorrent
arg="$1"
if [ "$arg" != "" ]; then
	arg=`readlink -f "$arg"`
	arg="`echo "$arg" | sed 's/\//\\\\/g'`"
	arg="Z:${arg}"
	cd "$EXEC_DIR"
	exec wine utorrent.exe "$arg"
else
	cd "$EXEC_DIR"
	exec wine utorrent.exe
fi
