mkdesk is a quick-and-dirty script to create
.desktopfiles for any command. I made it because I'm too lazy to write them manually.
mkdesk.sh creates a desktop-launcher file for any command, moves it to ~/.local/share/applications/, and makes it executable so it shows up in your application menu right away.
- Any POSIX-flavored shell (tested in
bashandzsh) - Linux desktop environment that reads
.desktopfiles (GNOME, KDE, XFCE, etc.)
# clone (or just copy the script into a file)
$ git clone https://github.com/beepyDev/mkdesk.git
$ cd mkdesk
# make it executable & move it somewhere in your $PATH
$ chmod +x mkdesk.sh
$ sudo mv mkdesk.sh /usr/local/bin/mkdesk$ mkdesk.sh Name Comment "Exec command" IconPath_or_false Terminal(true/false)Note: IconPath_or_false can be "false" to omit the Icon line.
$ mkdesk.sh "Brave Browser" "Launch Brave Browser" "brave" "~/Downloads/brave.png" true