From 3c923b7e631bd335e8ed221a196dccf03af3ad49 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Wed, 14 Dec 2016 14:23:20 +0200 Subject: [PATCH] Change replacement order for %c Quoted keys should be replaced first, otherwise they will never be replaced. --- src/xdgmenumaker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdgmenumaker b/src/xdgmenumaker index f23f94f..b7be528 100755 --- a/src/xdgmenumaker +++ b/src/xdgmenumaker @@ -358,9 +358,9 @@ def get_entry_info(desktopfile, ico_paths=True): # each WM. This is not 100% failure-proof. There might be other variations # of this out there, but we can't account for every single one. If someone # finds one another one, I can always add it later. - command = command.replace('-caption %c', '') command = command.replace('-caption "%c"', '') command = command.replace("-caption '%c'", '') + command = command.replace('-caption %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