From e63c8f63d0b89969e9397104c2063f9fc984f834 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 5 Jun 2021 09:29:05 +0200 Subject: [PATCH] Ignore also -qwindowtitle %c in Exec Qt 5 supports a -qwindowtitle for the main window title, so ignore it in the same way of -caption %c. --- src/xdgmenumaker | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xdgmenumaker b/src/xdgmenumaker index 9325d01..2478912 100755 --- a/src/xdgmenumaker +++ b/src/xdgmenumaker @@ -354,6 +354,10 @@ def remove_command_keys(command, desktopfile, icon): command = command.replace('-caption "%c"', '') command = command.replace("-caption '%c'", '') command = command.replace('-caption %c', '') + # same as before, although with -qwindowtitle (typical for Qt 5 apps). + command = command.replace('-qwindowtitle "%c"', '') + command = command.replace("-qwindowtitle '%c'", '') + command = command.replace('-qwindowtitle %c', '') # replace the %k key. This is what freedesktop says about it: "The # location of the desktop file as either a URI (if for example gotten from # the vfolder system) or a local filename or empty if no location is