mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Linux: Use setDesktopFileName when compiled against new enough Qt
Apparently Plasma with Wayland backend needs it. Fixes #1818436 [Calibre icon is incorrect on KDE Plasma Wayland session](https://bugs.launchpad.net/calibre/+bug/1818436)
This commit is contained in:
parent
bf40fb88f7
commit
1f3c8a6ee4
@ -830,6 +830,8 @@ class Application(QApplication):
|
||||
QApplication.setOrganizationDomain(QApplication.organizationName())
|
||||
QApplication.setApplicationVersion(__version__)
|
||||
QApplication.setApplicationName(APP_UID)
|
||||
if override_program_name and hasattr(QApplication, 'setDesktopFileName'):
|
||||
QApplication.setDesktopFileName(override_program_name)
|
||||
QApplication.__init__(self, qargs)
|
||||
self.setAttribute(Qt.AA_UseHighDpiPixmaps)
|
||||
self.setAttribute(Qt.AA_SynthesizeTouchForUnhandledMouseEvents, False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user