desktopfile 0.2.0

Desktop Entry Specification implementation


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Desktopfile

D library for working with .desktop files. See Desktop Entry Specification.

Generating documentation

dub build --build=docs

Running tests

dub test

Examples

See examples/ directory.

Desktop util

Utility that can parse and execute .desktop files. This will start vlc with the first parameter set to ~/Music:

dub run desktopfile:desktoputil -- exec /usr/share/applications/vlc.desktop ~/Music

Parse and write .desktop file to new location:

dub run desktopfile:desktoputil -- write /usr/share/applications/vlc.desktop ~/Desktop/vlc.desktop

Desktop test

Parses all .desktop files in system's applications paths (usually /usr/local/share/applicatons and /usr/share/applications). Writes errors (if any) to stderr. Use this example to check if the desktopfile library can parse all .desktop files on your system.

dub run desktopfile:desktoptest



Authors:
  • Roman Chistokhodov
Sub packages:
desktopfile:desktoputil, desktopfile:desktoptest
Dependencies:
none
Versions:
1.3.3 2020-Sep-18
1.3.2 2020-Jul-25
1.3.1 2020-Jul-24
1.3.0 2020-Jul-18
1.2.0 2018-May-04
Show all 38 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 665 downloads total

Score:
1.1
Short URL:
desktopfile.dub.pm