Skip to content

[Regression Canary] Problem start WT with lnk #20053

Closed

Description

@Zeroes1

Windows Terminal version

1.26.901.0

Windows build number

10.0.19045.7058

Other Software

No response

Steps to reproduce

make lnk WT to taskbar
run lnk
problem see on video.

trouble.with.link.to.wt.mp4

Expected Behavior

latest good:
terminal-1.26.851.0

Actual Behavior

terminal-1.26.861.0-bad
terminal-1.26.891.0-bad
terminal-1.26.901.0-bad

Activity

  1. added theissue type on Apr 2, 2026
  2. added
    Issue-Bug
    Needs-Triage
    on Apr 2, 2026
  3. DHowett commented on Apr 2, 2026

    @DHowett
    Member

    Hmm, possibly related to #20018. Carlos Zamora (@carlos-zamora) mind having a look? Shortcuts and AUMIDs somewhat go "hand in hand". This was checked in in time for the 861 build

  4. carlos-zamora commented on Apr 3, 2026

    @carlos-zamora

    Been working all day to try and fix this. Haven't given up, but I'm specifically having trouble fixing this scenario:

    • drag WindowsTerminal.exe to taskbar (creates .lnk)
    • double click WindowsTerminal.exe
    • BUG: new entry in taskbar appears for Terminal!
    • EXPECTED: same entry in taskbar is used

    At its core, the problem is this:

    • we're now setting an AUMID in WindowEmperor::HandleCommandlineArgs()
    • when the .lnk is created, we're using the exe to do so, so there's no associated AUMID with it
    • Before Set AppUserModelID for unpackaged #20018 (confirmed), this was fine. Since there was no associated AUMID, the OS would figure that out for us and deterministically pick the same resolved AUMID. This resulted in reusing the same spot.
    • Post-Set AppUserModelID for unpackaged #20018, they now disagree! The .lnk has no AUMID, so the only way to target it was to use the auto-generated one. But we don't do that anymore, we generate one for you. This disagreement resulted in a new entry in the taskbar.

    As a result, a workaround is that instead of creating the .lnk from the exe, create the taskbar entry first by opening terminal, then right-click it and pin it to the taskbar. This should make it so that the AUMID is generated and applied, so when you create the .lnk, it already has the correct one.

    Literally as I wrote this, it looks like I managed to get a fix working. It's over in dev/cazamor/bugfix/aumid. I'll give it a review and clean it up tomorrow. It also includes a write-up of what I tried (issue-20053-aumid-investigation.md).

  5. added
    Product-Terminal
    Area-Windowing
    on Apr 3, 2026
  6. removed
    Needs-Triage
    on Apr 8, 2026
  7. added a commit that references this issue on May 1, 2026
    059986e
  8. Zeroes1 commented on May 2, 2026

    @Zeroes1
    Author

    Thank 2 All! work fine now! =)

  9. added a commit that references this issue on May 11, 2026
    154aed0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-WindowingIssue-BugNeeds-Tag-FixProduct-Terminal

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions