chore(appearance): rely on cosmic-settings-daemon to configure GTK font preferences (#2217)

This is now redundant now that the cosmic-settings-daemon manages this
This commit is contained in:
Balló György 2026-09-23 22:24:12 +02:00 • committed by GitHub
parent 7421ff0ab4
commit ee5b432e26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,9 +134,6 @@ impl Model {
stretch: cosmic::iced::font::Stretch::Normal, stretch: cosmic::iced::font::Stretch::Normal,
}; };
update_config(INTERFACE_FONT, self.interface_font.clone()); update_config(INTERFACE_FONT, self.interface_font.clone());
tokio::spawn(async move {
set_gnome_font_name(font.as_ref()).await;
});
None None
} }
_ => None, _ => None,
@ -221,11 +218,3 @@ fn update_config(variant: &str, font: FontConfig) {
_ = config.set(variant, font); _ = config.set(variant, font);
} }
} }
/// Set the preferred icon theme for GNOME/GTK applications.
pub async fn set_gnome_font_name(font_name: &str) {
let _res = tokio::process::Command::new("gsettings")
.args(["set", "org.gnome.desktop.interface", "font-name", font_name])
.status()
.await;
}