feat(desktop-entries): Nix application paths support

This commit is contained in:
Michael Aaron Murphy 2021-12-20 16:58:12 +01:00 committed by Jeremy Soller
parent 98e386621e
commit 8eb3104920
3 changed files with 5 additions and 3 deletions

4
Cargo.lock generated
View file

@ -540,9 +540,9 @@ dependencies = [
[[package]]
name = "freedesktop-desktop-entry"
version = "0.4.0"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61ecb2f63bfff12ca1a6e98c2ed7bac47169abe4d3cdbaeeb8e3852afdcc8ace"
checksum = "bf77a18f5a7dc4fa975cb54cbb204abc04121131a92aa7010438d29e513bb1ae"
dependencies = [
"dirs",
"gettext-rs",

View file

@ -9,7 +9,7 @@ publish = false
[dependencies]
async-pidfd = "0.1"
fork = "0.1"
freedesktop-desktop-entry = "0.4"
freedesktop-desktop-entry = "0.4.1"
futures-lite = "1"
gtk = "0.14"
human_format = "1.0"

View file

@ -301,6 +301,8 @@ fn path_string(source: &PathSource) -> Cow<'static, str> {
match source {
PathSource::Local | PathSource::LocalDesktop => "Local".into(),
PathSource::LocalFlatpak => "Flatpak".into(),
PathSource::LocalNix => "Nix".into(),
PathSource::Nix => "Nix (System)".into(),
PathSource::System => "System".into(),
PathSource::SystemFlatpak => "Flatpak (System)".into(),
PathSource::SystemSnap => "Snap (System)".into(),