fix(desktop): stop AppImage from contaminating XDG_DATA_DIRS and GSETTINGS_SCHEMA_DIR in spawned terminals
What Changed
- Desktop: probe
XDG_DATA_DIRSfrom the login shell and overwrite the AppImage value (same as PATH). - Server: strip AppImage mount segments from
XDG_DATA_DIRSand dropGSETTINGS_SCHEMA_DIRwhen it points under the mount.
Why
Linux AppImage replaces XDG_DATA_DIRS and sets GSETTINGS_SCHEMA_DIR to its own mount, so spawned terminals can't find system GTK/gsettings schemas. The existing AppImage scrub handled PATH but missed these two.
Closes #5059.
Checklist
- [x] This PR is small and focused
- [x] I explained what changed and why
- [x] No UI changes
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
dc1cf109-e14f-4f7c-82c0-acc9c7e11e7cYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- [ ] 🔍 Trigger review
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Approvability
Verdict: Approved bd54ab6
Straightforward bug fix extending existing AppImage environment scrubbing to additional variables (XDG_DATA_DIRS, GSETTINGS_SCHEMA_DIR). The implementation follows established patterns and includes comprehensive tests.
You can customize Macroscope's approvability policy. Learn more.