aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lumina-open/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp
index f3695085..c3fb5c49 100644
--- a/lumina-open/main.cpp
+++ b/lumina-open/main.cpp
@@ -194,6 +194,7 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
//Make sure that it is a valid file/URL
bool isFile=false; bool isUrl=false;
if(QFile::exists(inFile)){ isFile=true; }
+ else if(QFile::exists(QDir::currentPath()+"/"+inFile)){isFile=true; inFile = QDir::currentPath()+"/"+inFile;} //account for relative paths
else if(QUrl(inFile).isValid() && !inFile.startsWith("/") ){ isUrl=true; }
if( !isFile && !isUrl ){ qDebug() << "Error: Invalid file or URL"; return;}
//Determing the type of file (extension)
bgstack15