diff options
Diffstat (limited to 'src-qt5/core')
-rw-r--r-- | src-qt5/core/lumina-open/main.cpp | 2 |
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 |