#desktop #entry #freedesktop #applications #linux

deentry

Interaction layer for FreeDesktop Desktop Entry files with a permissive license

1 unstable release

0.0.1 Apr 6, 2024

#27 in #freedesktop

Download history 155/week @ 2024-04-01 71/week @ 2024-04-08 20/week @ 2024-04-15 20/week @ 2024-04-22

266 downloads per month

MIT/Apache

29KB
655 lines

DeEntry

An Interaction layer for FreeDesktop Desktop Entry files with a permissive license. This Rust crate allows users to both read, write and modify Desktop Entry files. It crate aims to be compatible with all common use cases of Desktop Entry files. This includes:

  • .desktop files
  • Session files
  • SystemD service files

This crate solves the non-permissive licensing issues that similar crates have.

License

The project is made available under the MIT and APACHE license. See the LICENSE-MIT and LICENSE-APACHE files, respectively, for more information.

Contribution

Please report any bugs and possible improvements as an issue within this repository. Pull requests are also welcome.


lib.rs:

This is a relatively simple library that is driven by the needs of Lemurs to parse desktop entry files with a permissive license.

use deentry::DesktopEntry;

let desktop_entry = r#"
[Desktop Entry]
Name=CoolApplication
Exec=/path/to/app
"#;

let desktop_entry = DesktopEntry::try_from(desktop_entry)?;

No runtime deps