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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/3203
Author: @bitcrazed
Created: 10/15/2019
Status: ❌ Closed

Base: master ← Head: bitcrazed/Expand-Background-Image-Path


📝 Commits (6)

  • fa0757e Address #2369: Add & update install instructions , inc.ffor VC++ 14 Redist
  • 9a8a5dc Update README.md
  • 83b2617 Improved ReadMe FAQ section
  • b9cd724 Added background image path & env-var expansion
  • 39468ca Implemented background image path settings transfer
  • 1493435 Added basic regression tests

📊 Changes

5 files changed (+98 additions, -21 deletions)

View changed files

📝 README.md (+37 -19)
➕ doc/images/solution-platform.png (+0 -0)
📝 src/cascadia/LocalTests_TerminalApp/SettingsTests.cpp (+34 -0)
📝 src/cascadia/TerminalApp/Profile.cpp (+24 -2)
📝 src/cascadia/TerminalApp/Profile.h (+3 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/3203 **Author:** [@bitcrazed](https://github.com/bitcrazed) **Created:** 10/15/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `bitcrazed/Expand-Background-Image-Path` --- ### 📝 Commits (6) - [`fa0757e`](https://github.com/microsoft/terminal/commit/fa0757eb43f7ee3d1dafbf1e8f36fa00ba9aa916) Address #2369: Add & update install instructions , inc.ffor VC++ 14 Redist - [`9a8a5dc`](https://github.com/microsoft/terminal/commit/9a8a5dc94754d976b6c639664394cb1dbc184aba) Update README.md - [`83b2617`](https://github.com/microsoft/terminal/commit/83b2617ffb7a36457959bb0ff22ea9471f3a69c6) Improved ReadMe FAQ section - [`b9cd724`](https://github.com/microsoft/terminal/commit/b9cd724f0ecd6907ea4b4cc76c0a10246b365315) Added background image path & env-var expansion - [`39468ca`](https://github.com/microsoft/terminal/commit/39468cab10da99420ff12c0dc13887ab5a10d0fe) Implemented background image path settings transfer - [`1493435`](https://github.com/microsoft/terminal/commit/14934358e21920a005cba7fb7c27ac3b8aa340ce) Added basic regression tests ### 📊 Changes **5 files changed** (+98 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+37 -19) ➕ `doc/images/solution-platform.png` (+0 -0) 📝 `src/cascadia/LocalTests_TerminalApp/SettingsTests.cpp` (+34 -0) 📝 `src/cascadia/TerminalApp/Profile.cpp` (+24 -2) 📝 `src/cascadia/TerminalApp/Profile.h` (+3 -0) </details> ### 📄 Description ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:08:26 +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#25272