parent
a9cbbeea0a
commit
b004b9d815
11 changed files with 340 additions and 314 deletions
|
|
@ -6,11 +6,11 @@ license = "GPL-3.0"
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
ashpd = { version = "0.8", default-features = false }
|
||||
async-channel = "2.1.1"
|
||||
chrono = "0.4.37"
|
||||
clap = { version = "4.4.18", features = ["derive"] }
|
||||
color-eyre = "0.6.2"
|
||||
ashpd = { version = "0.9", default-features = false }
|
||||
async-channel = "2.3.1"
|
||||
chrono = "0.4.38"
|
||||
clap = { version = "4.5.11", features = ["derive"] }
|
||||
color-eyre = "0.6.3"
|
||||
cosmic-bg-config.workspace = true
|
||||
cosmic-comp-config.workspace = true
|
||||
cosmic-config.workspace = true
|
||||
|
|
@ -25,34 +25,34 @@ cosmic-settings-wallpaper = { path = "../pages/wallpapers" }
|
|||
derivative = "2.2.0"
|
||||
derive_setters = "0.1.6"
|
||||
dirs = "5.0.1"
|
||||
downcast-rs = "1.2.0"
|
||||
freedesktop-desktop-entry = "0.5.0"
|
||||
futures = { package = "futures-lite", version = "2.2.0" }
|
||||
downcast-rs = "1.2.1"
|
||||
freedesktop-desktop-entry = "0.7.0"
|
||||
futures = { package = "futures-lite", version = "2.3.0" }
|
||||
generator = "=0.8.1"
|
||||
hostname-validator = "1.1.1"
|
||||
hostname1-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
||||
i18n-embed-fl = "0.8.0"
|
||||
image = "0.25"
|
||||
itertools = "0.13.0"
|
||||
itoa = "1.0.10"
|
||||
itoa = "1.0.11"
|
||||
libcosmic.workspace = true
|
||||
notify = "6.1.1"
|
||||
once_cell = "1.19.0"
|
||||
regex = "1.10.3"
|
||||
regex = "1.10.5"
|
||||
ron = "0.8"
|
||||
rust-embed = "8.2.0"
|
||||
serde = { version = "1.0.196", features = ["derive"] }
|
||||
rust-embed = "8.5.0"
|
||||
serde = { version = "1.0.204", features = ["derive"] }
|
||||
slotmap = "1.0.7"
|
||||
static_init = "1.0.3"
|
||||
sunrise = "1.0.1"
|
||||
tokio.workspace = true
|
||||
tracing = "0.1.40"
|
||||
tracing-subscriber = "0.3.18"
|
||||
udev = "0.8.0"
|
||||
url = "2.5.0"
|
||||
udev = "0.9.0"
|
||||
url = "2.5.2"
|
||||
xkb-data = "0.1.0"
|
||||
zbus = { version = "4.2.1", features = ["tokio"] }
|
||||
tachyonix = "0.2.1"
|
||||
zbus = { version = "4.4.0", features = ["tokio"] }
|
||||
tachyonix = "0.3.0"
|
||||
slab = "0.4.9"
|
||||
|
||||
[dependencies.i18n-embed]
|
||||
|
|
|
|||
|
|
@ -109,8 +109,6 @@ pub fn main() -> color_eyre::Result<()> {
|
|||
std::env::set_var("RUST_SPANTRACE", "0");
|
||||
}
|
||||
|
||||
std::env::set_var("WGPU_POWER_PREF", "low");
|
||||
|
||||
init_logger();
|
||||
init_localizer();
|
||||
|
||||
|
|
|
|||
|
|
@ -600,15 +600,15 @@ impl<'a> TryFrom<Cow<'a, Path>> for Applet<'static> {
|
|||
|
||||
fn try_from(path: Cow<'a, Path>) -> Result<Self, Self::Error> {
|
||||
let content = std::fs::read_to_string(path.as_ref())?;
|
||||
let entry = DesktopEntry::decode(path.as_ref(), &content)?;
|
||||
let entry = DesktopEntry::from_str(path.as_ref(), &content, None::<&[&str]>)?;
|
||||
if entry.desktop_entry("X-CosmicApplet").is_none() {
|
||||
anyhow::bail!("Not an applet");
|
||||
}
|
||||
|
||||
Ok(Self {
|
||||
id: Cow::from(entry.id().to_string()),
|
||||
name: Cow::from(entry.name(None).unwrap_or_default().to_string()),
|
||||
description: Cow::from(entry.comment(None).unwrap_or_default().to_string()),
|
||||
name: Cow::from(entry.name::<&str>(&[]).unwrap_or_default().to_string()),
|
||||
description: Cow::from(entry.comment::<&str>(&[]).unwrap_or_default().to_string()),
|
||||
icon: Cow::from(entry.icon().unwrap_or_default().to_string()),
|
||||
path: Cow::from(path.into_owned()),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue