Browse Source

Merge pull request #22 from pinotree/qwindowtitle

Ignore also -qwindowtitle %c in Exec
pull/23/head
George Vlahavas 3 years ago
committed by GitHub
parent
commit
1931ee4079
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/xdgmenumaker

4
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

Loading…
Cancel
Save