From ed773e2d2b15888a04f32227ed9669e22dd82c09 Mon Sep 17 00:00:00 2001 From: DashieTM Date: Mon, 3 Jun 2024 21:46:30 +0200 Subject: [PATCH] hotfix: ubuntu in supported envs --- monitors/src/const.rs | 2 +- monitors/src/frontend/handlers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monitors/src/const.rs b/monitors/src/const.rs index 1aacb14..b71250c 100644 --- a/monitors/src/const.rs +++ b/monitors/src/const.rs @@ -2,4 +2,4 @@ pub const BASE: &str = "org.Xetibo.ReSet.Daemon"; pub const DBUS_PATH: &str = "/org/Xebito/ReSet/Plugins/Monitors"; pub const INTERFACE: &str = "org.Xetibo.ReSet.Monitors"; -pub const SUPPORTED_ENVIRONMENTS: [&str; 3] = ["Hyprland", "GNOME", "KDE"]; +pub const SUPPORTED_ENVIRONMENTS: [&str; 3] = ["Hyprland", "GNOME", "ubuntu:GNOME", "KDE"]; diff --git a/monitors/src/frontend/handlers.rs b/monitors/src/frontend/handlers.rs index 4966319..9846415 100644 --- a/monitors/src/frontend/handlers.rs +++ b/monitors/src/frontend/handlers.rs @@ -113,7 +113,7 @@ pub fn apply_monitor_clicked( if !revert { // Gnome has their own popup, hence two popups would appear -> solution, disable ours - if persistent && get_environment().as_str() == "GNOME" { + if persistent && is_gnome() { return; } let popup = adw::AlertDialog::new(Some("Confirm Configuration"), Some("Is this configuration correct?\n