A command-line tool for creating and inspecting .desktop files on Linux, built on the dotdesktop header-only C library.
Requirements:
- A C11 compiler (GCC or Clang)
- Meson
- Ninja
Meson fetches the dotdesktop library automatically through the wrap in subprojects/dotdesktop.wrap:
git clone https://github.com/AnmiTaliDev/dotdesktop-cli.git
cd dotdesktop-cli
meson setup builddir
meson compile -C builddir
sudo meson install -C builddirRun without arguments, or with -i/--interactive, to be guided through the fields:
dotdesktop -iOr pass fields directly:
dotdesktop \
--name="Firefox" \
--exec="/usr/bin/firefox" \
--icon="firefox" \
--comment="Web Browser" \
--type="Application" \
--categories="Network;WebBrowser;" \
--output="firefox.desktop"Other commands:
dotdesktop --analyze=/usr/share/applications/firefox.desktop
dotdesktop --list
dotdesktop --update-db
dotdesktop --template
dotdesktop --template=app --output=myapp.desktopRun dotdesktop --help for the full flag list.
Distributed under the GNU General Public License v3.0 or later. See the license text for details.