From a0e50b12085fe47dcc9abdf436b626857ff8e99a Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Thu, 10 Nov 2016 18:08:06 -0500 Subject: [PATCH] forgot to add pd addy to Windows gui command in last commit --- pd/src/s_inter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c index 1d6d23c1f..c9f076133 100644 --- a/pd/src/s_inter.c +++ b/pd/src/s_inter.c @@ -1419,6 +1419,8 @@ fprintf(stderr, "guidir is %s\n", guidir); //strcat(scriptbuf, "/" PDBINDIR "pd.tk\""); //sys_bashfilename(scriptbuf, scriptbuf); + char pd_this_string[80]; + sprintf(pd_this_string, "x%lx", (long unsigned int)pd_this); sprintf(scriptbuf, "\""); /* use quotes in case there are spaces */ strcat(scriptbuf, sys_libdir->s_name); strcat(scriptbuf, "/" PDBINDIR); @@ -1439,7 +1441,7 @@ fprintf(stderr, "guidir is %s\n", guidir); portbuf, "localhost", (sys_k12_mode ? "pd-l2ork-k12" : "pd-l2ork"), - scriptbuf, 0); + scriptbuf, pd_this_string, 0); if (spawnret < 0) { perror("spawnl"); -- GitLab