#! /bin/sh

case `uname` in
CYG*)	true;;
*)	echo script to create desktop icon designated for Cygwin only
	exit;;
esac

FOLDER="$(cygpath -A -P)/Cygwin-X/Editors"

icon=`dirname $0`/../mined.ico

mkshortcut --arguments="bash -c umined" \
	--name="$FOLDER/mined" \
	--icon="$icon" \
	--desc="Powerful text editor with Unicode and CJK support" \
	--workingdir="%HOME%" \
	/usr/X11R6/bin/run.exe

if [ $? = 1 ]
then	false
else	# observed return value 205
	true
fi
