#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

#29 in #freedesktop

Download history 34/week @ 2024-07-22 40/week @ 2024-07-29 2/week @ 2024-08-05 2/week @ 2024-08-19 4/week @ 2024-08-26 7/week @ 2024-09-02 6/week @ 2024-09-09 10/week @ 2024-09-16 30/week @ 2024-09-23 38/week @ 2024-09-30 11/week @ 2024-10-07 13/week @ 2024-10-14 15/week @ 2024-10-28 23/week @ 2024-11-04

52 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