aboutsummaryrefslogtreecommitdiff
path: root/lumina-open
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-04-28 13:01:36 -0400
committerKen Moore <ken@pcbsd.org>2015-04-28 13:01:36 -0400
commit10731636d4754bfb498b8769a4fd686fa2c8bf7f (patch)
tree9ff92bba9262391f4a4d6cfbffc2c4deea7b740a /lumina-open
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-10731636d4754bfb498b8769a4fd686fa2c8bf7f.tar.gz
lumina-10731636d4754bfb498b8769a4fd686fa2c8bf7f.tar.bz2
lumina-10731636d4754bfb498b8769a4fd686fa2c8bf7f.zip
Add the "file:" flag to the beginning of any local file in lumina-open if the app specifically asks for a URL.
Diffstat (limited to 'lumina-open')
-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 70e5b2f7..ecb661e0 100644
--- a/lumina-open/main.cpp
+++ b/lumina-open/main.cpp
@@ -281,6 +281,7 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
cmd.replace("%F","\""+inFile+"\"");
}else if( (cmd.contains("%U") || cmd.contains("%u")) ){
//Apply any special field replacements for the desired format
+ if(!inFile.contains("://")){ inFile.prepend("file:"); } //local file - add the extra flag
inFile.replace(" ", "%20");
//Now replace the field codes
cmd.replace("%u","\""+inFile+"\"");
bgstack15