#!/bin/sh DIRNAME=$(dirname "$1") BASENAME=$(basename "$1") cd "$DIRNAME" && exec wine "$BASENAME"