diff options
author | Ken Moore <ken@pcbsd.org> | 2014-09-09 10:49:31 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-09-09 10:49:31 -0400 |
commit | 156d29893b12e1a22664ba4b065196b5beec768e (patch) | |
tree | 8b3f788c5c780848581ab9a39ef1efb7a4d50861 /libLumina/LuminaXDG.cpp | |
parent | Update lumina-open to remove some of the other Exec= flags that might be avai... (diff) | |
download | lumina-156d29893b12e1a22664ba4b065196b5beec768e.tar.gz lumina-156d29893b12e1a22664ba4b065196b5beec768e.tar.bz2 lumina-156d29893b12e1a22664ba4b065196b5beec768e.zip |
Update the *.desktop "Exec=" compliance to the standards as of 9/9/2014 in LuminaXDG
Diffstat (limited to 'libLumina/LuminaXDG.cpp')
-rw-r--r-- | libLumina/LuminaXDG.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libLumina/LuminaXDG.cpp b/libLumina/LuminaXDG.cpp index 8a9696de..8d210abe 100644 --- a/libLumina/LuminaXDG.cpp +++ b/libLumina/LuminaXDG.cpp @@ -235,8 +235,12 @@ QString LXDG::getDesktopExec(XDGDesktop app){ else if(app.useTerminal){ out = "xterm -lc -e "+app.exec; }else{ - out = app.exec; + out = app.exec; } + //Now perform any of the XDG flag substitutions as appropriate (9/2014 standards) + if(out.contains(" %i ")){ out.replace(" %i ", " --icon "+app.icon+" "); } + if(out.contains(" %c ")){ out.replace(" %c ", " "+app.name+" "); } + if(out.contains(" %k ")){ out.replace(" %k ", " "+app.filePath+" "); } return out; } |