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:
Eli Schwartz 2021-12-02 10:41:34 -05:00
parent 030c80a68c
commit d5fa341d13
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -305,7 +305,7 @@ def main(args=sys.argv, logger=None):
return 1
pid = os.fork() if (islinux or isbsd) else -1
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.setWindowIcon(QIcon(I('viewer.png')))
opts = normalize_settings(parser, opts)