Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotdesktop-cli

A command-line tool for creating and inspecting .desktop files on Linux, built on the dotdesktop header-only C library.

Building

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 builddir

Usage

Run without arguments, or with -i/--interactive, to be guided through the fields:

dotdesktop -i

Or 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.desktop

Run dotdesktop --help for the full flag list.

License

Distributed under the GNU General Public License v3.0 or later. See the license text for details.

About

A command-line tool for creating and inspecting .desktop.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages