Commit 2ad6afbb authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Try to fix #222: for OSX App bundle, start pwd in the user's directory instead...

Try to fix #222: for OSX App bundle, start pwd in the user's directory instead of deep inside the App bundle
parent 0a9633a5
......@@ -1052,7 +1052,18 @@ function external_doc_open(url) {
exports.external_doc_open = external_doc_open;
function gui_set_cwd(dummy, cwd) {
if (cwd !== ".") {
// The check for "darwin" is a quick workaround for getting
// the OSX App bundle to start the pwd in the user's working directory
// instead of deep inside the App bundle itself. However, this may
// become a problem when people try to install Purr Data "Linux"-style,
// that is, install it system-wide from the command line instead of
// in an App bundle.
// Also, there is a general problem that we're setting the pwd from
// two different places-- index.js in set_vars() and s_inter.c with
// this call. That's unnecessarily complex and hard to follow. It
// should be simplified
if (cwd !== "." && process.platform !== "darwin") {
pwd = cwd;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment