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