From 27c914f49d2fd3e9b0b9352f19e1727459f188cb Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Tue, 4 Aug 2015 21:14:58 -0400 Subject: [PATCH] abstract out the directory for nw binary --- pd/src/s_inter.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c index a6ad312b1..ba490dafb 100644 --- a/pd/src/s_inter.c +++ b/pd/src/s_inter.c @@ -1278,11 +1278,17 @@ int sys_startgui(const char *guidir) sys_libdir->s_name, sys_libdir->s_name, guidir, portno, (sys_k12_mode ? "pd-l2ork-k12" : "pd-l2ork")); /* SUPERHACK - let's just load node-webkit and see what happens */ - sprintf(cmdbuf, - "/home/user/Downloads/nwjs-v0.12.2-linux-ia32/nw " +// sprintf(cmdbuf, +// "/home/user/Downloads/nwjs-v0.12.2-linux-ia32/nw " // "/home/nu/Downloads/nwjs-v0.12.0-alpha2-linux-ia32/nw " - "/home/user/pd-nw/pd/nw/ %d localhost %s\n", - portno, +// "/home/user/pd-nw/pd/nw/ %d localhost %s\n", +// portno, +// (sys_k12_mode ? "pd-l2ork-k12" : "pd-l2ork")); + + + sprintf(cmdbuf, + "%s/nw/nw %s %d localhost %s\n", + guidir, guidir, portno, (sys_k12_mode ? "pd-l2ork-k12" : "pd-l2ork")); #endif -- GitLab