From 030c80a68c517aa36872fab47a5e4172df478f07 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 2 Dec 2021 10:29:32 -0500 Subject: [PATCH] fix the linux desktop filename mapping for ebook-edit This was initially added in commit efb83eb6fcd1b175e70281fc0776ca2e53422ad0 with a filler name that, however, didn't match the usual style of desktop filenames. When the actual desktop file was added in commit a87092ba4f5e61aa51149c2c34880582613037f0 it didn't match the filename. Although it was mass renamed from "tweak" to "edit" in commit 289ef5f0b9a4a87e6918744af64ff0d80f6a6c42, the word ordering was still wrong. As a result, application menus failed to correlate open windows to pinned icons, or (on application menus that support it) group the windows together. --- src/calibre/gui2/tweak_book/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/main.py b/src/calibre/gui2/tweak_book/main.py index ac49543ce6..fce680fb9f 100644 --- a/src/calibre/gui2/tweak_book/main.py +++ b/src/calibre/gui2/tweak_book/main.py @@ -70,7 +70,7 @@ def _run(args, notify=None): parser = option_parser() opts, args = parser.parse_args(args) decouple('edit-book-'), set_gui_prefs(tprefs) - override = 'calibre-edit-book' if islinux else None + override = 'calibre-ebook-edit' if islinux else None app = Application(args, override_program_name=override, color_prefs=tprefs, windows_app_uid=EDITOR_APP_UID) app.file_event_hook = EventAccumulator() app.load_builtin_fonts()