diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-05-01 01:05:01 -0500 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-05-01 01:05:01 -0500 |
| commit | 496befb51f8f876ab62f78b524e612d940b02956 (patch) | |
| tree | 4846c3ee630754783dad4e5207883379dd820be2 /libs/plugin_python/src/pybind11-utils/include/pybind11_utils | |
| parent | 4bb4fe5ca0e7e75533d908a91f0d7aa086db9e61 (diff) | |
Port upstream PR #2379: reset CWD to app dir on startup
When MO2 is launched by the nxm handler from a browser, CWD is whatever
the browser inherited (often /, $HOME, or the user's Desktop). Reset it
to the application directory so any code path relying on CWD behaves
the same as a normal launch.
Cherry-picked from upstream f80ad04. Comment expanded for the Linux
context (Qt resource lookup, relative QFile paths, QtWebEngine sandbox
helper) — upstream's note only covered QtWebEngineProcess on Windows.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'libs/plugin_python/src/pybind11-utils/include/pybind11_utils')
0 files changed, 0 insertions, 0 deletions
