#!/bin/sh

# script to install the HYSPLIT shortcut
# to the LINUX desktop. For all users, set
# the directory to /usr/share/applications

DIR=${HOME}/.local/share/applications
OUT=hysplit.desktop
cd ${DIR}

echo "[Desktop Entry]"                             >${OUT} 
echo "Type=Application"                           >>${OUT}
echo "Encoding=UTF-8"                             >>${OUT}
echo "Name=HYSPLIT"                               >>${OUT} 
echo "Comment=HYSPLIT Version 5.0.0"              >>${OUT}
echo "Exec=${HOME}/hysplit/guicode/hysplit.tcl"   >>${OUT}
echo "Icon=${HOME}/hysplit/guicode/desktop.ico"   >>${OUT}
echo "Path=${HOME}/hysplit/working"               >>${OUT}
echo "Terminal=false"                             >>${OUT}
  WEB=""
  if [ -f /usr/bin/firefox ];then WEB="/usr/bin";fi
  if [ -f /usr/local/bin/firefox ];then WEB="/usr/local/bin";fi
