# Processing can find the data folder in Windows 11 but not in Linux or Mac

**URL:** <https://discourse.processing.org/t/processing-can-find-the-data-folder-in-windows-11-but-not-in-linux-or-mac/47472>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [November 2, 2025, 8:48pm UTC](https://discourse.processing.org/t/processing-can-find-the-data-folder-in-windows-11-but-not-in-linux-or-mac/47472 "2025-11-02T20:48:54Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 4, 2025, 7:30pm UTC](https://discourse.processing.org/t/processing-can-find-the-data-folder-in-windows-11-but-not-in-linux-or-mac/47472/29 "2025-11-04T19:30:16Z")

</div>

> [@glv](#):
>
> I had to add an `=` sign for this to work with `sketchPath()` in `layer` in your code (`subsketch_0` in my code):
> 
> `final String[] switches = { ARGS_SKETCH_FOLDER + "=" + sketchPath(), "" };`

Indeed, that was a very old example which I had forgotten to include an `'='` character, which is required for the **runSketch()**'s `switch/case` block parser:

> <https://github.com/processing/processing4/blob/processing-1310-4.4.10/core/src/processing/core/PApplet.java#L749-L755>

> <https://github.com/processing/processing4/blob/processing-1310-4.4.10/core/src/processing/core/PApplet.java#L9960-L9969>

So this is the fixed line:  
`final String[] switches = { ARGS_SKETCH_FOLDER + '=' + sketchPath(), "" };`

---

_[View the full topic](https://discourse.processing.org/t/processing-can-find-the-data-folder-in-windows-11-but-not-in-linux-or-mac/47472)._
