diff options
author | Ken Moore <ken@pcbsd.org> | 2016-08-24 11:26:36 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-08-24 11:26:36 -0400 |
commit | 0e41febe4702d292bd74608f4e373e4d7c963f83 (patch) | |
tree | 46a1bd48adced68072bf7aecbf7861ffc2ebe154 /src-qt5/core | |
parent | Fix up the auto-creation/removal of application symlinks when apps are instal... (diff) | |
download | lumina-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.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 |