aboutsummaryrefslogtreecommitdiff
path: root/libLumina
diff options
context:
space:
mode:
authorJesse Smith <jessefrgsmith@yahoo.ca>2014-09-15 20:09:25 -0300
committerJesse Smith <jessefrgsmith@yahoo.ca>2014-09-15 20:09:25 -0300
commite1d9c0fec2ba639e291fa4dfce987e8421e7aaab (patch)
tree6c9cf48047c5396cdf4baa873dd8d42305d1cd75 /libLumina
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadlumina-e1d9c0fec2ba639e291fa4dfce987e8421e7aaab.tar.gz
lumina-e1d9c0fec2ba639e291fa4dfce987e8421e7aaab.tar.bz2
lumina-e1d9c0fec2ba639e291fa4dfce987e8421e7aaab.zip
Updated fix to make sure first Exec entry in a .desktop file is taken.
Fixes launching default apps on Linux.
Diffstat (limited to 'libLumina')
-rw-r--r--libLumina/LuminaXDG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libLumina/LuminaXDG.cpp b/libLumina/LuminaXDG.cpp
index 84e9ad90..3b489487 100644
--- a/libLumina/LuminaXDG.cpp
+++ b/libLumina/LuminaXDG.cpp
@@ -59,8 +59,8 @@ XDGDesktop LXDG::loadDesktopFile(QString filePath, bool& ok){
if(DF.icon.isEmpty() && loc.isEmpty()){ DF.icon = val; }
else if(loc == lang){ DF.icon = val; }
}
- else if( (var=="TryExec") && (DF.tryexec != "") ) { DF.tryexec = val; }
- else if( (var=="Exec") && (DF.exec != "") ){ DF.exec = val; } // only take the first Exec command in the file
+ else if( (var=="TryExec") && (DF.tryexec.isEmpty()) ) { DF.tryexec = val; }
+ else if( (var=="Exec") && (DF.exec.isEmpty() ) ) { DF.exec = val; } // only take the first Exec command in the file
else if(var=="NoDisplay" && !DF.isHidden){ DF.isHidden = (val.toLower()=="true"); }
else if(var=="Hidden" && !DF.isHidden){ DF.isHidden = (val.toLower()=="true"); }
else if(var=="Categories"){ DF.catList = val.split(";",QString::SkipEmptyParts); }
bgstack15