[PR #3203] Expand env-vars in background image path #25277

Closed
opened 2026-01-31 09:08:27 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/3203

State: closed
Merged: No


Summary of the Pull Request

Expands any environment variables in background image file paths so that users can specify location of background images relative to, for example, %USERPROFILE%

References

  • Terminal takes an unexpected dirt nap when backgroundImage contains environment variables #2922

PR Checklist

  • Closes Please add the "Default Maximize" option (#2922)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Validation Steps Performed

Thoroughly debugged with previous failing case, now working case, empty strings, etc. Also added basic regression tests that will fail if icon or backgroundImage paths contain env-vars and the path expansion mechanisms are ever removed/subverted.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/3203 **State:** closed **Merged:** No --- ## Summary of the Pull Request Expands any environment variables in background image file paths so that users can specify location of background images relative to, for example, %USERPROFILE% ## References * Terminal takes an unexpected dirt nap when backgroundImage contains environment variables #2922 ## PR Checklist * [X] Closes #2922 * [X] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [X] Tests added/passed * [ ] Requires documentation to be updated * [X] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Validation Steps Performed Thoroughly debugged with previous failing case, now working case, empty strings, etc. Also added basic regression tests that will fail if icon or backgroundImage paths contain env-vars and the path expansion mechanisms are ever removed/subverted.
claunia added the pull-request label 2026-01-31 09:08:27 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25277