diff --git a/pd/nw/index.js b/pd/nw/index.js index d62d14e4998ed6dcc6b66856b4cf60718f6a58f0..1cd5e01f1466ab118b585283984b054d4189c4a7 100644 --- a/pd/nw/index.js +++ b/pd/nw/index.js @@ -364,7 +364,7 @@ function nw_create_pd_window_menus(gui, w) { style: "display: none;", type: "file", id: "fileDialog", - nwworkingdir: pdgui.get_pwd(), + nwworkingdir: pdgui.get_pd_opendir(), multiple: null, // These are copied from pd_filetypes in pdgui.js accept: ".pd,.pat,.mxt,.mxb,.help" diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index e0af0309dc7205f4ec98b798abd477b9fe65c52e..67f95c2a18b8fe6da6afba33a016419bdb0d8b4d 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -1141,7 +1141,7 @@ function nw_create_patch_window_menus(gui, w, name) { style: "display: none;", type: "file", id: "fileDialog", - nwworkingdir: pdgui.get_pwd(), + nwworkingdir: pdgui.get_pd_opendir(), multiple: null, // These are copied from pd_filetypes in pdgui.js accept: ".pd,.pat,.mxt,.mxb,.help"