mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix the linux desktop filename mapping for lrfviewer
In commit e7e0aea6958b1419a5e72c85da0e0f920d36fb53, this was added with the wrong name -- the "lrfviewer" application doesn't have a hyphenated name, oddly enough, even though it is in fact "ebook-viewer" not "ebookviewer". On the other hand, it's probably not worth fixing the inconsistency, because changing desktop filenames can be (a bit) disruptive if people have pinned or modified them, and it's not worth it just for a stray hyphen. Changing the actual program executable name is even less worth it...
This commit is contained in:
parent
030c80a68c
commit
d5fa341d13
@ -305,7 +305,7 @@ def main(args=sys.argv, logger=None):
|
|||||||
return 1
|
return 1
|
||||||
pid = os.fork() if (islinux or isbsd) else -1
|
pid = os.fork() if (islinux or isbsd) else -1
|
||||||
if pid <= 0:
|
if pid <= 0:
|
||||||
override = 'calibre-lrf-viewer' if islinux else None
|
override = 'calibre-lrfviewer' if islinux else None
|
||||||
app = Application(args, override_program_name=override)
|
app = Application(args, override_program_name=override)
|
||||||
app.setWindowIcon(QIcon(I('viewer.png')))
|
app.setWindowIcon(QIcon(I('viewer.png')))
|
||||||
opts = normalize_settings(parser, opts)
|
opts = normalize_settings(parser, opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user