From 3833ce7a1905e99dab74d7b0b46f24888150cba7 Mon Sep 17 00:00:00 2001 From: trigg Date: Fri, 15 Mar 2024 15:47:58 +0000 Subject: [PATCH] - Disallow setting overlays to 'edge' when cinnamon is detected --- discover_overlay/settings_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discover_overlay/settings_window.py b/discover_overlay/settings_window.py index 515c9f5..91bc5d3 100644 --- a/discover_overlay/settings_window.py +++ b/discover_overlay/settings_window.py @@ -542,6 +542,9 @@ class MainSettingsWindow(): self.widget['core_settings_min'].set_active(self.start_minimized) self.widget['core_settings_min'].set_sensitive(self.show_sys_tray_icon) + + if 'XDG_SESSION_DESKTOP' in os.environ and os.environ['XDG_SESSION_DESKTOP']=='cinnamon': + self.widget['voice_anchor_to_edge_button'].set_sensitive(False) self.loading_config = False