aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaXDG.cpp
diff options
context:
space:
mode:
authorSasongko Bawono <sasongko262@gmail.com>2017-02-26 08:33:25 +0700
committerSasongko Bawono <sasongko262@gmail.com>2017-02-26 08:33:25 +0700
commiteb7d5a1270d17ecd16912008d8587cc543cafc77 (patch)
tree64be065a2e3fe58933bb5be6f30cc76a1af33f86 /src-qt5/core/libLumina/LuminaXDG.cpp
parent modified DEPENDENCIES for Slackware (diff)
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.tar.gz
lumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.tar.bz2
lumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src-qt5/core/libLumina/LuminaXDG.cpp')
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp
index d92285c5..38128fc7 100644
--- a/src-qt5/core/libLumina/LuminaXDG.cpp
+++ b/src-qt5/core/libLumina/LuminaXDG.cpp
@@ -127,9 +127,8 @@ void XDGDesktop::sync(){
else if(var=="Type" && insection){
if(val.toLower()=="application"){ type = XDGDesktop::APP; }
else if(val.toLower()=="link"){ type = XDGDesktop::LINK; }
- else if(val.toLower()=="dir"){ type = XDGDesktop::DIR; }
+ else if(val.toLower().startsWith("dir")){ type = XDGDesktop::DIR; } //older specs are "Dir", newer specs are "Directory"
else{ type = XDGDesktop::BAD; } //Unknown type
- //hasType = true;
}
} //end reading file
file.clear(); //done with contents of file
@@ -176,7 +175,7 @@ bool XDGDesktop::isValid(bool showAll){
//if(DEBUG && !ok){ qDebug() << " - Link with missing URL"; }
break;
case XDGDesktop::DIR:
- ok = !path.isEmpty();
+ ok = !path.isEmpty() && QFile::exists(path);
//if(DEBUG && !ok){ qDebug() << " - Dir with missing path"; }
break;
default:
bgstack15