From 344d61eb51bf3a6e9a1c581224d871da24f6ed41 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Tue, 1 Apr 2014 20:29:15 -0400
Subject: [PATCH] *fixed pd~ regression where instantiation within another
 instance of pd~ failed to start due to expectation of the new -unique flag
 without which all patches are opened within the existing instance.

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

diff --git a/pd/extra/pd~/pd~.c b/pd/extra/pd~/pd~.c
index 74fcf89c4..71487109b 100644
--- a/pd/extra/pd~/pd~.c
+++ b/pd/extra/pd~/pd~.c
@@ -205,7 +205,7 @@ static void pd_tilde_donew(t_pd_tilde *x, char *pddir, char *schedlibdir,
         }       
     }
     snprintf(cmdbuf, MAXPDSTRING,
-"%s -schedlib %s/pdsched -path %s -inchannels %d -outchannels %d -r %g %s\n",
+"%s -unique -schedlib %s/pdsched -path %s -inchannels %d -outchannels %d -r %g %s\n",
         pdexecbuf, schedlibdir, patchdir, ninsig, noutsig, samplerate, pdargs);
 #if 0
 #ifdef PD
-- 
GitLab