mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
On linux ensure that WM_CLASS for the main calibre GUI is set to 'calibre-gui' to match the name of the calibre-gui.desktop file. This is apparently required by the GNOME 3 shell. Fixes #1020297 (application icons in gnome3)
This commit is contained in:
parent
25758c4348
commit
8f6ff64b3b
@ -736,6 +736,9 @@ class Application(QApplication):
|
||||
|
||||
def __init__(self, args, force_calibre_style=False):
|
||||
self.file_event_hook = None
|
||||
if islinux and args[0].endswith(u'calibre'):
|
||||
args = list(args)
|
||||
args[0] += '-gui'
|
||||
qargs = [i.encode('utf-8') if isinstance(i, unicode) else i for i in args]
|
||||
QApplication.__init__(self, qargs)
|
||||
global gui_thread, qt_app
|
||||
|
Loading…
x
Reference in New Issue
Block a user