diff options
-rw-r--r-- | src-qt5/core/libLumina/LuminaXDG.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp index cb16830d..d92285c5 100644 --- a/src-qt5/core/libLumina/LuminaXDG.cpp +++ b/src-qt5/core/libLumina/LuminaXDG.cpp @@ -220,13 +220,13 @@ QString XDGDesktop::getDesktopExec(QString ActionID){ out = term+" -e "+out; //-e is a nearly-universal flag for terminal emulators } //Now perform any of the XDG flag substitutions as appropriate (9/2014 standards) - if(out.contains("%i") && !icon.isEmpty() ){ out.replace("%i", "--icon \'"+icon+"\'"); } + if(out.contains("%i") && !icon.isEmpty() ){ out.replace("%i", "--icon \""+icon+"\""); } if(out.contains("%c")){ - if(!name.isEmpty()){ out.replace("%c", "\'"+name+"\'"); } - else if(!genericName.isEmpty()){ out.replace("%c", "\'"+genericName+"\'"); } - else{ out.replace("%c", "\'"+filePath.section("/",-1).section(".desktop",0,0)+"\'"); } + if(!name.isEmpty()){ out.replace("%c", "\""+name+"\""); } + else if(!genericName.isEmpty()){ out.replace("%c", "\""+genericName+"\""); } + else{ out.replace("%c", "\""+filePath.section("/",-1).section(".desktop",0,0)+"\""); } } - if(out.contains("%k")){ out.replace("%k", "\'"+filePath+"\'"); } + if(out.contains("%k")){ out.replace("%k", "\""+filePath+"\""); } return out; } |