Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal in Microsoft store and WinGet has different identifiers #11960

Closed
LeftTwixWand opened this issue Dec 16, 2021 · 10 comments
Closed

Terminal in Microsoft store and WinGet has different identifiers #11960

LeftTwixWand opened this issue Dec 16, 2021 · 10 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@LeftTwixWand
Copy link

Windows Terminal version

1.11.3471.0

Windows build number

19044.1348

Other Software

No response

Steps to reproduce

Now the terminal can be installed twice, because the terminal in Microsoft Store and WinGet has different ID.

image

Expected Behavior

I've got confused, because I had installed two different terminals.
When I'm launching the terminal from the icon - MS Store terminal starts.
But when I'm launching it from the command line, with command wt - winget terminal starts.

I really want to see one single instance of the terminal.

Actual Behavior

And what's the problem - they have different settings.

image

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Dec 16, 2021
@DHowett
Copy link
Member

DHowett commented Dec 16, 2021

This is a WinGet issue -- it is not able to merge the two entries even though they do actually point to the same thing.

The Microsoft.WindowsTerminal moniker from the winget source installs the store package. The store ID 9N0... installs the same package.

This is not the source of your two different copies of Terminal...
are you using Scoop or some other third-party package manager?

If your "two" copies of Terminal both live under \Program Files\WindowsApps, you are probably seeing #9452.

@DHowett DHowett added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Dec 16, 2021
@elsaco
Copy link

elsaco commented Dec 17, 2021

@DHowett when using winget install --source=winget the package URL points to your GitHub releases:

Installer:
  Type: Msix
  Download Url: https://github.com/microsoft/terminal/releases/download/v1.11.3471.0/Microsoft.WindowsTerminal_1.11.3471.0_8wekyb3d8bbwe.msixbundle

When installing from the store is the URL the same as above? winget show 'Windows Terminal' --source=msstore won't reveal the download link. Thx!

@DHowett
Copy link
Member

DHowett commented Dec 17, 2021

Effectively.

That msixbundle is the package we download from the store after uploading it for distribution!

When they're installed on the system, they are registered through the same mechanism. The system treats them identically.

@ghost ghost added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Dec 21, 2021
@ghost
Copy link

ghost commented Dec 21, 2021

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@LeftTwixWand
Copy link
Author

This screenshot shows, that there are two absolutely different Terminals exist.
image

The first one stores its state in
AppData\Local\Microsoft
And another one - like all the other apps from Microsoft Store in the Packages folder.
AppData\Local\Packages

When I'm running the Terminal from the Start Menu - it runs the terminal from the Packages folder, like downloaded from the Microsoft Store:
image
image
And the setting file loaded from the Packages\LocalState folder.
image

But then I'm running the terminal through the command:
image
It opens absolutely other terminal with my custom configuration:
image
And the setting file had been read from the Local\Microsoft\Windows Terminal Folder
image

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. labels Dec 21, 2021
@DHowett
Copy link
Member

DHowett commented Jan 6, 2022

Can you please report the actual path to WindowsTerminal.exe when you're in this state? You can get it by running, from PowerShell:

Get-Process WindowsTerminal | Select -Expand Path

As I mentioned in #11960 (comment):

If your "two" copies of Terminal both live under \Program Files\WindowsApps, you are probably seeing #9452.

If you have two copies running, and you run that command, and they both point to the same EXE: go read #9452.

I promise you that WinGet and the Microsoft Store install identical bits on your computer. 😄

@DHowett DHowett added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Jan 7, 2022
@ghost ghost added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Jan 11, 2022
@ghost
Copy link

ghost commented Jan 11, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@LeftTwixWand
Copy link
Author

I've run the terminals from the Start menu and through the wt command.
The running processes are the same. But they have different styles....

image

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. labels Jan 11, 2022
@zadjii-msft
Copy link
Member

Presumably, that means they're running with different identities. I'd reckon that the one run via wt.exe is running packaged, and the Start Menu one is unpackaged. You should be able to confirm this by opening the About dialog.

@DHowett
Copy link
Member

DHowett commented Jan 11, 2022

Thanks for the report! This is a clear case of /dup #9452, as mentioned before. Please follow the remediation steps in #9452. Again, that's #9452.

@microsoft microsoft locked and limited conversation to collaborators Jan 11, 2022
@ghost ghost closed this as completed Jan 11, 2022
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements Needs-Attention The core contributors need to come back around and look at this ASAP. labels Jan 11, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

4 participants