chore(appearance): remove call to set icon theme as this is handled by cosmic-settings-daemon

This commit is contained in:
Balló György 2025-11-07 19:40:12 +01:00 committed by GitHub
parent e2bb9ad246
commit dd57d1ac40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 15 deletions

View file

@ -203,8 +203,6 @@ impl Content {
if let Some(ref config) = self.tk_config { if let Some(ref config) = self.tk_config {
_ = config.set::<String>("icon_theme", theme.id); _ = config.set::<String>("icon_theme", theme.id);
} }
tokio::spawn(icon_themes::set_gnome_icon_theme(theme.name));
} }
} }
IconMessage::ApplyThemeGlobal(enabled) => { IconMessage::ApplyThemeGlobal(enabled) => {

View file

@ -237,19 +237,6 @@ pub async fn fetch() -> Message {
)) ))
} }
/// Set the preferred icon theme for GNOME/GTK applications.
pub async fn set_gnome_icon_theme(theme: String) {
let _res = tokio::process::Command::new("gsettings")
.args([
"set",
"org.gnome.desktop.interface",
"icon-theme",
theme.as_str(),
])
.status()
.await;
}
#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd)] #[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub struct IconTheme { pub struct IconTheme {
// COSMIC uses the file name of the folder containing the theme // COSMIC uses the file name of the folder containing the theme