aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-09-09 10:29:48 -0400
committerKen Moore <ken@pcbsd.org>2014-09-09 10:29:48 -0400
commit71c00355681fe974554e0bb40daa19fc9bc16592 (patch)
tree0b102477c7ac1cbaa4c7edbf4b3db20f4b507d13
parentFix a bug where a directory was not getting the input file added to the lumin... (diff)
downloadlumina-71c00355681fe974554e0bb40daa19fc9bc16592.tar.gz
lumina-71c00355681fe974554e0bb40daa19fc9bc16592.tar.bz2
lumina-71c00355681fe974554e0bb40daa19fc9bc16592.zip
Update lumina-open to remove some of the other Exec= flags that might be available (if not handled previously).
-rw-r--r--lumina-open/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp
index 9b35e19e..bb8967ba 100644
--- a/lumina-open/main.cpp
+++ b/lumina-open/main.cpp
@@ -230,7 +230,7 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
//This is a directory link - adjust inputs
inFile = DF.path;
cmd.clear();
- extension = "directorypath";
+ extension = "directory";
}else{
qDebug() << "[ERROR] Input *.desktop directory file is missing the Path line:" << inFile;
exit(1);
@@ -251,7 +251,7 @@ void getCMD(int argc, char ** argv, QString& binary, QString& args, QString& pat
}
//qDebug() << "Found Command:" << cmd << "Extension:" << extension;
//Clean up the command appropriately for output
- if(cmd.contains("%")){cmd = cmd.remove("%U").remove("%u").remove("%F").remove("%f").simplified(); }
+ if(cmd.contains("%")){cmd = cmd.remove("%U").remove("%u").remove("%F").remove("%f").remove("%i").remove("%c").remove("%k").simplified(); }
binary = cmd;
if(useInputFile){ args = inFile; }
}
bgstack15