https://github.com/derisis13/dtgen
A minimalistic .desktop creator for GNOME and KDE
https://github.com/derisis13/dtgen
automation desktop-files freedesktop linux
Last synced: 10 months ago
JSON representation
A minimalistic .desktop creator for GNOME and KDE
- Host: GitHub
- URL: https://github.com/derisis13/dtgen
- Owner: Derisis13
- License: gpl-3.0
- Created: 2021-02-09T22:17:37.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-19T01:22:39.000Z (about 4 years ago)
- Last Synced: 2025-02-06T02:44:28.106Z (11 months ago)
- Topics: automation, desktop-files, freedesktop, linux
- Language: C
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dtgen
A minimalistic .desktop creator for GNOME and KDE
This simple program written in C takes command line arguaments and creates the contents of a .desktop file specified by the desktop entry specification (which is then can be piped, copied or whatever you want). Desktop entries are located at ~/.local/share/applications
## Currently available arguaments:
+ -a [append] append any other string at the end of the file (eg. Terminal=true)
+ -c [category] add to category, default is none (multiple categories can be separated with a semicolon)
+ -C [comment] add comment, default is none
+ -e [executable] specify executable, mandatory (check documentation for details: https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/)
+ -h display help
+ -i [icon] add icon by filename, default is none (icon from your current theme, from /usr/share/icons/hicolor/48x48/apps/ or from an absolute path)
+ -n [name] specify name, mandatory
## Installation:
Inside a terminal run:
git clone https://https://github.com/Derisis13/dtgen
Cd to the directory you cloned into there run:
sudo gcc main.c -o /usr/bin/dtgen
Or if you want to install it locally:
gcc main.c -o ~/.local/bin/dtgen
Now you can use the program in the terminal. You can remove the downloaded files, and the program will stay. To uninstall it run:
sudo rm -f /usr/bin/dtgen ~/.local/bin/dtgen