aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaXDG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libLumina/LuminaXDG.cpp')
-rw-r--r--libLumina/LuminaXDG.cpp6
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;
}
bgstack15