[PR #14107] Allow for exe/dll paths for the Icon setting #29943

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

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

State: closed
Merged: Yes


Summary of the Pull Request

Allow exe/dll paths for the Icon setting

The exe/dll icon needs to work in all the following areas:

  • The tab
  • The navigation view item in the SUI
  • The new tab flyout
  • The command palette

PR Checklist

  • Closes Switch from ConhostConnection to the official ConPTY API (#1504)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema 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

Detailed Description of the Pull Request / Additional comments

For the command palette, we had to switch to using ContentPresenter because IconSourceElement cannot take in every type of icon we need to provide

Validation Steps Performed

Setting "%SystemRoot%\System32\shell32.dll,214" as the icon for a profile works in all the cases listed above.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14107 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Allow exe/dll paths for the `Icon` setting The exe/dll icon needs to work in all the following areas: * [x] The tab * [x] The navigation view item in the SUI * [x] The new tab flyout * [x] The command palette ## PR Checklist * [x] Closes #1504 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema 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 ## Detailed Description of the Pull Request / Additional comments For the command palette, we had to switch to using `ContentPresenter` because `IconSourceElement` cannot take in every type of icon we need to provide ## Validation Steps Performed Setting "%SystemRoot%\System32\shell32.dll,214" as the icon for a profile works in all the cases listed above.
claunia added the pull-request label 2026-01-31 09:37:45 +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#29943