Skip to content

teccdev/mkdesk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

mkdesk

mkdesk is a quick-and-dirty script to create .desktop files for any command. I made it because I'm too lazy to write them manually.

✨ What it does

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.

πŸ›  Requirements

  • Any POSIX-flavored shell (tested in bash and zsh)
  • Linux desktop environment that reads .desktop files (GNOME, KDE, XFCE, etc.)

πŸ“¦ Installation

# 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

πŸ“ Usage

$ mkdesk.sh Name Comment "Exec command" IconPath_or_false Terminal(true/false)

Note: IconPath_or_false can be "false" to omit the Icon line.

Example usage:

$ mkdesk.sh "Brave Browser" "Launch Brave Browser" "brave" "~/Downloads/brave.png" true

πŸ“œ License

WTFPL

About

Simple .desktop file creator script

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages