Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
purr-data
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
269
Issues
269
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Wilkes
purr-data
Commits
ac6d6849
Commit
ac6d6849
authored
Sep 23, 2018
by
Jonathan Wilkes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'define-custom-gui-path'
parents
65f1a0ef
3465776b
Pipeline
#1389
passed with stage
in 346 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
pd/src/s_inter.c
pd/src/s_inter.c
+21
-8
No files found.
pd/src/s_inter.c
View file @
ac6d6849
...
...
@@ -12,6 +12,17 @@ that didn't really belong anywhere. */
#include "m_imp.h"
#include "g_canvas.h"
/* for GUI queueing stuff */
/* Use this if you want to point the guidir at a local copy of the
* repo while developing. Then recompile and copy the pd-l2ork binary
* to the system path. After that you can make changes to the gui code
* in purr-data/pd/nw and test them without having to recompile the
* pd-l2ork binary.
* If you do this, make sure you have run tar_em_up.sh first to fetch and
* extract the nw binary to purr-data/pd/nw/nw
*/
#define GUIDIR ""
/* "/home/user/purr-data/pd/nw" */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#else // if isatty exists outside unistd, please add another #ifdef
...
...
@@ -1411,10 +1422,11 @@ int sys_startgui(const char *guidir)
strcpy
(
guidir2
,
"
\"
"
);
strcat
(
guidir2
,
guidir
);
strcat
(
guidir2
,
"
\"
"
);
/* Uncomment the following line if you want to
use the nw binary and GUI code from your local
copy of the Purr Data repo. (Make sure to run
tar_em_up.sh first to fetch the nw binary.) */
/* The following line checks if our GUIDIR was defined
to something other than empty string. If so it will
use that dir to find the nw binary. */
if
(
strcmp
(
GUIDIR
,
""
))
strcpy
(
guidir2
,
"
\"
"
GUIDIR
"
\"
"
);
//strcpy(guidir2, "\"/home/user/purr-data/pd/nw\"");
sprintf
(
cmdbuf
,
"
\"
%s
\"
%s %s "
...
...
@@ -1452,10 +1464,11 @@ int sys_startgui(const char *guidir)
strcpy
(
guidir2
,
"
\"
"
);
strcat
(
guidir2
,
guidir
);
strcat
(
guidir2
,
"
\"
"
);
/* Uncomment the following line if you want to
use the nw binary and GUI code from your local
copy of the Purr Data repo. (Make sure to run
tar_em_up.sh first to fetch the nw binary.) */
/* The following line checks if our GUIDIR was defined
to something other than empty string. If so it will
use that dir to find the nw binary. */
if
(
strcmp
(
GUIDIR
,
""
))
strcpy
(
guidir2
,
"
\"
"
GUIDIR
"
\"
"
);
//strcpy(guidir2, "\"/home/user/purr-data/pd/nw\"");
sprintf
(
cmdbuf
,
"%s/nw/nw %s %s "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment