#!/bin/sh menudir=/usr/share/applications name=`zenity --entry --text "Enter the name of the application"` comment=`zenity --entry --text "Enter a comment"` execfile=`zenity --entry --text "Enter the path and filename for execution."` iconfile=`zenity --file-selection --title "Select the icon file"` category=`zenity --entry --text "Select a category" Accessories Game Graphics Multimedia Network Office Other System` linkname=`zenity --entry --text "Enter the name of the system link"` echo "[Desktop Entry]" > $menudir/$linkname.desktop echo "Encoding=UTF-8" >> $menudir/$linkname.desktop echo "Name="$name >> $menudir/$linkname.desktop echo "GenericName="$name >> $menudir/$linkname.desktop echo "Comment="$comment >> $menudir/$linkname.desktop echo "Icon="$iconfile >> $menudir/$linkname.desktop echo "Exec="$execfile >> $menudir/$linkname.desktop echo "Terminal=false" >> $menudir/$linkname.desktop echo "Type=Application" >> $menudir/$linkname.desktop echo "Categories=Application;"$category >> $menudir/$linkname.desktop echo "StartupNotify=true" >> $menudir/$linkname.desktop