Fix `--user-data-dir` (#44235)

Closes #40067

Release Notes:

- The `--user-data-dir` flag now works on Windows and Linux, as well as
macOS if you pass `--foreground`.

---------

Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
4353b8ecd5Julia Ryan committed on 12/10/2025, 12:42:19 AM· committed by GitHubparent736a712
2 files changedLine totals unavailable