Two or more apps sharing same data directory?
in
Programming Questions
•
2 years ago
I want two separate apps (each will run on its own display) to share the same data directory, but can't make it work.
Tried making app2's data directory a symlink to app1's but that doesn't work.
Sym links of any kind were generally failing to work.
I also tried saving app2's PDE file to same directory as app1, but then you get "duplicate methods" errors.
I realize processing must not be designed to allow two apps to share a data directory, but does anyone know if it can be done?
The general goal is that app1 creates files that app2 needs to read. Simple but not easy to accomplish.
Any ideas are appreciated.
UPDATE: I discovered dataPath() and sketchPath() and am having some success with relative paths.
Still interested in other techniques. Again the reason these are two apps is so each can run on its own monitor.
1