@@ -767,8 +767,9 @@ constructing `QApplication` and a `QFileDialog` still wrote
767767content and by a live, reproduced infinite `.rmlock` - chaining loop against
768768that exact file ). So setting an org/ app name does nothing to isolate
769769`QFileDialog` ' s settings — it only affects code that explicitly
770- constructs its own `QSettings()` / `QSettings(org, app)` , which nothing in
771- `pyrs/ ` does.
770+ constructs its own `QSettings()` , which nothing in `pyrs/ ` does (the
771+ calibration viewer' s `QSettings("neutrons", "PyRS")` names its own
772+ org/ app, so it is unaffected too).
772773
773774** Actual root cause, in two parts:**
7747751 . Every Qt/ PyQt process on the machine that ever opens a `QFileDialog`
@@ -809,7 +810,8 @@ symptom, just against the now-private file instead of the shared one.
809810Moving the file off the contention path was necessary but not
810811sufficient; it needed to also move off NFS .
811812
812- ** Actual fix** ([scripts/ pyrsplot.py](../ scripts/ pyrsplot.py)): redirect
813+ ** Fix # 3 (reverted 2026-11-20, see below)** (was in
814+ [scripts/ pyrsplot.py](../ scripts/ pyrsplot.py)): redirect
813815`XDG_CONFIG_HOME ` to `< tempfile.gettempdir()> / pyrs- qt- config- < user> ` —
814816i.e. ** local disk** (verified here to be `xfs` on `/ ` , not NFS ),
815817namespaced per OS user (`getpass.getuser()` ) so it can' t collide with
@@ -827,12 +829,29 @@ Trade-off accepted: this directory is local to whichever compute/login
827829node the session happens to run on (typical at a shared, multi- node
828830facility), so " recent places" history does not follow the user between
829831nodes and may be cleared by OS temp- directory housekeeping. That' s a
830- purely cosmetic loss — nothing in `pyrs/ ` reads this state — traded for
831- never hitting an NFS - unrecoverable lock again.
832- `setOrganizationName()` / `setApplicationName()` calls were kept (correct
832+ purely cosmetic loss — nothing in `pyrs/ ` reads the dialog history (the
833+ calibration viewer' s remembered export folder, added later in #1087, did
834+ live there too) — traded for never hitting an NFS - unrecoverable lock again.
835+ `setOrganizationName()` / `setApplicationName()` calls were kept until the
836+ 2026 - 11 - 20 revert (correct
833837practice for any future code that constructs its own `QSettings` ), but
834838were never what fixed this.
835839
840+ ** Reverted (2026 - 11 - 20 ):** at the maintainer' s request,
841+ [scripts/ pyrsplot.py](../ scripts/ pyrsplot.py) is back to its pre- 2026 - 08
842+ form (the `next_revert` branch): no `XDG_CONFIG_HOME ` redirect and no
843+ org/ app identity, so PyRS again uses Qt' s default `~/.config/QtProject.conf`.
844+ The calibration viewer' s remembered export folder
845+ (`QSettings(" neutrons" , " PyRS" )` ,
846+ [detector_calibration_viewer.py](../ pyrs/ interface/ detector_calibration/ detector_calibration_viewer.py))
847+ moves with it, from `< tmp> / pyrs- qt- config- < user> / neutrons/ PyRS.conf` back
848+ to `~ / .config/ neutrons/ PyRS.conf` : it now follows the user between nodes,
849+ but sits on NFS too. The diagnosis above still holds: on an NFS home
850+ directory the " Could not remove our own lock file" failure can return , for
851+ either file , and this section is the place to start if it does. The test- suite redirect in
852+ [tests/ conftest.py](../ tests/ conftest.py) is unchanged — tests still keep
853+ Qt state in a disposable temp directory.
854+
836855** Why this matters going forward:** if a similar " permission denied /
837856device or resource busy removing our own lock file " resurfaces
838857elsewhere, check, in order: (a) whether the affected settings file is
0 commit comments