From bcb3f3982491c28d46a1826ec938ed3ef264d12e Mon Sep 17 00:00:00 2001 From: Junior Martins Date: Mon, 23 Sep 2024 18:17:32 -0300 Subject: [PATCH] Fix unknown wmclass in linux (gear icon) --- modules/pmg_qt/pymol_qt_gui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/pmg_qt/pymol_qt_gui.py b/modules/pmg_qt/pymol_qt_gui.py index f12c72533..f2dfe2520 100644 --- a/modules/pmg_qt/pymol_qt_gui.py +++ b/modules/pmg_qt/pymol_qt_gui.py @@ -1226,6 +1226,10 @@ def execapp(): window = PyMOLQtGUI() window.setWindowTitle("PyMOL") + # fix linux dash icon + QtCore.QCoreApplication.setApplicationName("PyMOL") + QtGui.QGuiApplication.setDesktopFileName("org.pymol.PyMOL") + @commandoverloaddecorator def viewport(w=-1, h=-1, _self=None): window.viewportsignal.emit(int(w), int(h))