Skip to content

Commit 094674d

Browse files
committed
Fix nwjs#3462: support passing zip filename as argument
1 parent 4541bba commit 094674d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nw_content.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int MainPartsPreCreateThreadsHook() {
153153
if (package && !package->path().empty()) {
154154
base::FilePath path = package->path().NormalizePathSeparators();
155155

156-
command_line->AppendArgPath(path);
156+
command_line->AppendSwitchPath("nwapp", path);
157157
}
158158
return content::RESULT_CODE_NORMAL_EXIT;
159159
}

0 commit comments

Comments
 (0)