From 7c239897a8efa0738e413681b09d4f414eb5d5ca Mon Sep 17 00:00:00 2001 From: lucas-wilkins Date: Mon, 30 Sep 2024 13:38:43 +0100 Subject: [PATCH] Disable orientation viewer for Wayland --- src/sas/qtgui/MainWindow/GuiManager.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sas/qtgui/MainWindow/GuiManager.py b/src/sas/qtgui/MainWindow/GuiManager.py index 4ffc90362c..4d745f162c 100644 --- a/src/sas/qtgui/MainWindow/GuiManager.py +++ b/src/sas/qtgui/MainWindow/GuiManager.py @@ -715,8 +715,12 @@ def addTriggers(self): self._workspace.actionStartup_Settings.setVisible(False) #self._workspace.actionImage_Viewer.setVisible(False) self._workspace.actionCombine_Batch_Fit.setVisible(False) - # orientation viewer set to invisible SASVIEW-1132 - self._workspace.actionOrientation_Viewer.setVisible(True) + + # Show orientation viewer menu item only if not running Linux/Wayland + if "XDG_SESSION_TYPE" in os.environ and os.environ["XDG_SESSION_TYPE"] == "wayland": + self._workspace.actionOrientation_Viewer.setVisible(False) + else: + self._workspace.actionOrientation_Viewer.setVisible(True) # File self._workspace.actionLoadData.triggered.connect(self.actionLoadData)