#!/bin/sh
if [ -d /home/user/MyDocs/.wolf3d ];
then
	cd /home/user/MyDocs/.wolf3d
	/opt/wolf3d/keyon
	/opt/wolf3d/wolf3d
	/opt/wolf3d/keyoff
else

	if [ -d /home/user/MyDocs/wolf3d ];
	then
		cd /home/user/MyDocs/wolf3d
		/opt/wolf3d/keyon
		/opt/wolf3d/wolf3d
		/opt/wolf3d/keyoff
	else
		dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint 		string:"Wolfestein 3D error: Please install game data files to run the game."
	fi
fi
