Something
public text v1 · immutable#!/bin/sh
make_desktop_entry() {
#Creates the KDE/GNOME Desktop and Menu Entries..
#$1 = File
#$2 = Exec
#$3 = Name
#$4 = ICON
if [ -n "$1" ]
then
echo "[Desktop Entry]" > "$1"
if [ -n "$2" ]
then
echo "Name=$2" >> "$1"
fi
if [ -n "$3" ]
then
echo "Type=Application" >> "$1"
echo "Exec=\"$3\"" >> "$1"
fi
if [ -n "$4" ]
then
echo "Icon=\"$4\"" >> "$1"
fi
fi
}