function desktop_entry

This commit is contained in:
zenobit 2023-03-30 10:04:58 +02:00
parent 82a5c17ad3
commit 6ee973100e
1 changed files with 21 additions and 0 deletions

21
dh
View File

@ -98,6 +98,27 @@ function set_variables() {
trap "exit" EXIT
}
function create_desktop_entry() {
cat <<EOF > ${DESKTOP_FILE}
[Desktop Entry]
Version=$version
Type=$type
Name=$name
GenericName=$gname
Comment=$comment
Exec=$execmd
Icon=$icon
Terminal=$terminal
X-MultipleArgs=$args
Type=$type
Categories=$categories
StartupNotify=$notify
MimeType=$mime
Keywords=$keyword
EOF
}
function create_structure() {
source distrohopper.conf
echo $"creating config dir..."