From cb637c873ba1255e8dad1c655ee552a80234ca07 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sun, 3 Apr 2016 15:36:01 -0400
Subject: [PATCH] add more command line arguments for nw.js on windows

---
 pd/src/s_inter.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c
index b167078e6..2b6a17623 100644
--- a/pd/src/s_inter.c
+++ b/pd/src/s_inter.c
@@ -1413,7 +1413,10 @@ fprintf(stderr, "guidir is %s\n", guidir);
         strcat(wishbuf, "/" PDBINDIR "nw/nw");
         sys_bashfilename(wishbuf, wishbuf);
 
-        spawnret = _spawnl(P_NOWAIT, wishbuf, "pd-nw", scriptbuf, portbuf, 0);
+        spawnret = _spawnl(P_NOWAIT, wishbuf, "pd-nw", scriptbuf, portbuf,
+            "localhost",
+            (sys_k12_mode ? "pd-l2ork-k12" : "pd-l2ork"),
+            guidir, 0);
         if (spawnret < 0)
         {
             perror("spawnl");
-- 
GitLab