From d5fa341d13340c725992cbc2859bfea5816b2089 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 2 Dec 2021 10:41:34 -0500 Subject: [PATCH] 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... --- src/calibre/gui2/lrf_renderer/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/lrf_renderer/main.py b/src/calibre/gui2/lrf_renderer/main.py index a01c48d712..45decc2bc9 100644 --- a/src/calibre/gui2/lrf_renderer/main.py +++ b/src/calibre/gui2/lrf_renderer/main.py @@ -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)