t3code icon indicating copy to clipboard operation
t3code copied to clipboard

fix(desktop): stop AppImage from contaminating XDG_DATA_DIRS and GSETTINGS_SCHEMA_DIR in spawned terminals

Open JoeJoeflyn opened this issue 4 months ago • 2 comments

What Changed

  • Desktop: probe XDG_DATA_DIRS from the login shell and overwrite the AppImage value (same as PATH).
  • Server: strip AppImage mount segments from XDG_DATA_DIRS and drop GSETTINGS_SCHEMA_DIR when 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

JoeJoeflyn avatar Jul 31 '26 03:07 JoeJoeflyn

[!IMPORTANT]

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: dc1cf109-e14f-4f7c-82c0-acc9c7e11e7c

You can disable this status message by setting the reviews.review_status to false in 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot] avatar Jul 31 '26 03:07 coderabbitai[bot]

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.

macroscopeapp[bot] avatar Jul 31 '26 03:07 macroscopeapp[bot]