From 233eed1ca732a87e0ac1316613e33d490e36f16b Mon Sep 17 00:00:00 2001 From: Daniel Dybing Date: Fri, 23 Jan 2026 21:33:05 +0100 Subject: [PATCH] fix: set desktop file name before QApplication init to resolve QDBusError --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index cddfe2e..d6551e5 100644 --- a/src/main.py +++ b/src/main.py @@ -23,10 +23,10 @@ def main(): myappid = 'ddybing.teletexteditor.1.0' # arbitrary string ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid) + QApplication.setDesktopFileName("no.ddybing.TeletextEditor") # Helps Linux DEs group windows app = QApplication(sys.argv) app.setApplicationName("TeletextEditor") app.setOrganizationName("DanielDybing") - app.setDesktopFileName("no.ddybing.TeletextEditor") # Helps Linux DEs group windows # Debug Image Formats supported_formats = [str(fmt, 'utf-8') for fmt in QImageReader.supportedImageFormats()]