mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 14:23:42 +02: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue