Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
c67822de
Commit
c67822de
authored
Sep 25, 2016
by
Jonathan Wilkes
Browse files
Fix gui_dir location for OSX so that the doc files are found (load meter, etc.)
parent
0f8d90e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/index.js
View file @
c67822de
...
...
@@ -37,7 +37,11 @@ function set_vars(win) {
// If we're starting Pd, this is the first port number to try. (We'll
// increment it if that port happens to be taken.
port_no
=
5400
;
gui_dir
=
pwd
;
// This is confusing and needs to be rethought. OSX app bundle needs
// the gui_dir to be "bin", but the actual gui files reside in
// "bin/../" because of the structure of the nw.js app bundle we use.
// Anyway, this seems to get all the "doc" links to be found...
gui_dir
=
process
.
platform
===
"
darwin
"
?
"
bin
"
:
pwd
;
}
pdgui
.
set_port
(
port_no
);
pdgui
.
set_pwd
(
pwd
);
...
...
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