aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-08-24 11:26:36 -0400
committerKen Moore <ken@pcbsd.org>2016-08-24 11:26:36 -0400
commit0e41febe4702d292bd74608f4e373e4d7c963f83 (patch)
tree46a1bd48adced68072bf7aecbf7861ffc2ebe154 /src-qt5/core
parentFix up the auto-creation/removal of application symlinks when apps are instal... (diff)
downloadlumina-0e41febe4702d292bd74608f4e373e4d7c963f83.tar.gz
lumina-0e41febe4702d292bd74608f4e373e4d7c963f83.tar.bz2
lumina-0e41febe4702d292bd74608f4e373e4d7c963f83.zip
Fix a bug in lumina-open where the directory handling was not working.
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/lumina-open/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-open/main.cpp b/src-qt5/core/lumina-open/main.cpp
index cfbfc99b..cd0e4d65 100644
--- a/src-qt5/core/lumina-open/main.cpp
+++ b/src-qt5/core/lumina-open/main.cpp
@@ -229,7 +229,7 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
if(inFile.startsWith("file://")){ inFile.remove(0,7); }
//First make sure this is not a binary name first
QString bin = inFile.section(" ",0,0).simplified();
- if(LUtils::isValidBinary(bin) && !bin.endsWith(".desktop") ){isFile=true; extension="binary"; }
+ if(LUtils::isValidBinary(bin) && !bin.endsWith(".desktop") && !QFileInfo(inFile).isDir() ){isFile=true; extension="binary"; }
//Now check what type of file this is
else if(QFile::exists(inFile)){ isFile=true; }
else if(QFile::exists(QDir::currentPath()+"/"+inFile)){isFile=true; inFile = QDir::currentPath()+"/"+inFile;} //account for relative paths
bgstack15