2 ms·
Would you prefer this script to be shipped for you? If so, I suppose it should support more optional parameters, e.g. for the name and comment. BTW you can DRY
by nine_k 2y ago
Would you prefer this script to be shipped for you? If so, I suppose it should support more optional parameters, e.g. for the name and comment.
BTW you can DRY it up:
convert ... # Unchanged.
cat <<EOF >~/.local/share/applications/$1-noko.desktop
[Desktop Entry]
Name=$1
Comment=noko-made
Exec=$1
Terminal=false
Icon=~/.local/share/icons/$1.png
Type=Application
EOF