From df4c44a5abaa7d9a6f91de525ec3b699f5a944d7 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sun, 3 Apr 2016 19:31:58 -0400
Subject: [PATCH] try scriptbuf instead of libdir as Windows GUI argument

---
 pd/src/s_inter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c
index f249fd02a..8b6341a80 100644
--- a/pd/src/s_inter.c
+++ b/pd/src/s_inter.c
@@ -1416,7 +1416,7 @@ fprintf(stderr, "guidir is %s\n", guidir);
         spawnret = _spawnl(P_NOWAIT, wishbuf, "pd-nw", scriptbuf, portbuf,
             "localhost",
             (sys_k12_mode ? "pd-l2ork-k12" : "pd-l2ork"),
-            sys_libdir->s_name, 0);
+            scriptbuf, 0);
         if (spawnret < 0)
         {
             perror("spawnl");
-- 
GitLab