fix: set desktop file name before QApplication init to resolve QDBusError
This commit is contained in:
@@ -23,10 +23,10 @@ def main():
|
|||||||
myappid = 'ddybing.teletexteditor.1.0' # arbitrary string
|
myappid = 'ddybing.teletexteditor.1.0' # arbitrary string
|
||||||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
|
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
|
||||||
|
|
||||||
|
QApplication.setDesktopFileName("no.ddybing.TeletextEditor") # Helps Linux DEs group windows
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
app.setApplicationName("TeletextEditor")
|
app.setApplicationName("TeletextEditor")
|
||||||
app.setOrganizationName("DanielDybing")
|
app.setOrganizationName("DanielDybing")
|
||||||
app.setDesktopFileName("no.ddybing.TeletextEditor") # Helps Linux DEs group windows
|
|
||||||
|
|
||||||
# Debug Image Formats
|
# Debug Image Formats
|
||||||
supported_formats = [str(fmt, 'utf-8') for fmt in QImageReader.supportedImageFormats()]
|
supported_formats = [str(fmt, 'utf-8') for fmt in QImageReader.supportedImageFormats()]
|
||||||
|
|||||||
Reference in New Issue
Block a user