diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-12 17:32:27 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-12 17:32:27 -0400 |
commit | 155a683110ddfa425aa79e0b40162e0a9391165d (patch) | |
tree | 05522d7b97c2c740360240d242139e32c9e9d39a /libLumina/LuminaXDG.cpp | |
parent | Update a bunch of icons in the desktop session, and also add a few abilities ... (diff) | |
download | lumina-155a683110ddfa425aa79e0b40162e0a9391165d.tar.gz lumina-155a683110ddfa425aa79e0b40162e0a9391165d.tar.bz2 lumina-155a683110ddfa425aa79e0b40162e0a9391165d.zip |
Tweak the fallback behavior of the %c field code replacement routine for a *.desktop Exec generation.
Diffstat (limited to 'libLumina/LuminaXDG.cpp')
-rw-r--r-- | libLumina/LuminaXDG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libLumina/LuminaXDG.cpp b/libLumina/LuminaXDG.cpp index 1756c03b..9fa69cef 100644 --- a/libLumina/LuminaXDG.cpp +++ b/libLumina/LuminaXDG.cpp @@ -258,7 +258,7 @@ QString LXDG::getDesktopExec(XDGDesktop app){ if(out.contains("%i")){ out.replace("%i", "--icon \'"+app.icon+"\'"); } if(out.contains("%c")){ if(!app.name.isEmpty()){ out.replace("%c", ""+app.name+""); } - else if(!app.genericName.isEmpty()){ out.replace(" %c ", ""+app.genericName+""); } + else if(!app.genericName.isEmpty()){ out.replace("%c", ""+app.genericName+""); } } if(out.contains("%k")){ out.replace("%k", "\'"+app.filePath+"\'"); } return out; |