1 unstable release
0.0.1 | Apr 6, 2024 |
---|
#29 in #freedesktop
52 downloads per month
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)?;