What for guid? #2415

Closed
opened 2026-01-30 22:54:30 +00:00 by claunia · 8 comments
Owner

Originally created by @angelog0 on GitHub (Jun 30, 2019).

How to set the guid field in a profile?

For example, I want to create a profile for MSYS2, which basically starts c:\msys64\usr\bin\bash.exe (or it in a msys2.cmd file). Then, how to set guid? It seems it is in the form "{00000000-0000-0000-0000-000000000000}". Is there a way to retrive/generate it or just the user have to choose it?

I tried

"guid" : "{00000000-0000-0000-0000-000000000000}", for MSYS2

'"guid" : "{00000000-0000-0000-0000-000000000001}",' for MSYS2/MINGW32 and so on

Is that the right way?

Thanks.

Originally created by @angelog0 on GitHub (Jun 30, 2019). How to set the `guid` field in a profile? For example, I want to create a profile for MSYS2, which basically starts `c:\msys64\usr\bin\bash.exe` (or it in a `msys2.cmd` file). Then, how to set `guid`? It seems it is in the form `"{00000000-0000-0000-0000-000000000000}"`. Is there a way to retrive/generate it or just the user have to choose it? I tried `"guid" : "{00000000-0000-0000-0000-000000000000}",` for MSYS2 '"guid" : "{00000000-0000-0000-0000-000000000001}",' for MSYS2/MINGW32 and so on Is that the right way? Thanks.
claunia added the Needs-TriageNeeds-Tag-FixIssue-Docs labels 2026-01-30 22:54:30 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 30, 2019):

Use new-guid (from powershell), uuidgen (from Linux or MSYS with libuuid installed), guidgen (comes with a Visual Studio), or just make up a 128-bit hexadecimal number. It doesn’t matter!

@DHowett-MSFT commented on GitHub (Jun 30, 2019): Use `new-guid` (from powershell), `uuidgen` (from Linux or MSYS with libuuid installed), `guidgen` (comes with a Visual Studio), or just make up a 128-bit hexadecimal number. It doesn’t matter!
Author
Owner

@angelog0 commented on GitHub (Jun 30, 2019):

@DHowett-MSFT, just anothe question: are these guid(s) written to the registry?

Thanks...

@angelog0 commented on GitHub (Jun 30, 2019): @DHowett-MSFT, just anothe question: are these _guid(s)_ written to the registry? Thanks...
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 30, 2019):

No. Why would they be?

@DHowett-MSFT commented on GitHub (Jun 30, 2019): No. Why would they be?
Author
Owner

@mrPsycho commented on GitHub (Mar 24, 2020):

After update of system (or something in it) terminal lost guid for wsl.
this kinda sucks...

how to find guid of wsl?

@mrPsycho commented on GitHub (Mar 24, 2020): After update of system (or something in it) terminal lost guid for wsl. this kinda sucks... how to find guid of wsl?
Author
Owner

@zadjii-msft commented on GitHub (Mar 24, 2020):

@mrPsycho What? I'm really not sure what you're asking about. Are you trying to figure out the GUID of a WSL profile? Something else? Could you share your profiles.json?

@zadjii-msft commented on GitHub (Mar 24, 2020): @mrPsycho What? I'm really not sure what you're asking about. Are you trying to figure out the GUID of a WSL profile? Something else? Could you share your `profiles.json`?
Author
Owner

@mrPsycho commented on GitHub (Mar 24, 2020):

i found that this guid is internal stuff for terminal.

so i can use any guid, even like author posted. But it is not obvious, and would be cool do define it in documentation... but idk how to name it correctly.

@mrPsycho commented on GitHub (Mar 24, 2020): i found that this guid is internal stuff for terminal. so i can use any guid, even like author posted. But it is not obvious, and would be cool do define it in documentation... but idk how to name it correctly.
Author
Owner

@amrojjeh commented on GitHub (Jun 19, 2020):

What's the reason for using a guid? Isn't it easier to just have a one byte value to identify each profile since it's all stored on the local machine anyways? So instead of guid: {574e775e-4f2a-5b96-ac1e-a2962a402336}, you could have id: 1. What's the reason for not doing that? Thanks.

@amrojjeh commented on GitHub (Jun 19, 2020): What's the reason for using a guid? Isn't it easier to just have a one byte value to identify each profile since it's all stored on the local machine anyways? So instead of `guid: {574e775e-4f2a-5b96-ac1e-a2962a402336}`, you could have `id: 1`. What's the reason for not doing that? Thanks.
Author
Owner

@DHowett commented on GitHub (Jun 19, 2020):

As of 1.1 you can use the name anywhere you would have otherwise used guid, so you should probably just do that.

@DHowett commented on GitHub (Jun 19, 2020): As of 1.1 you can use the `name` anywhere you would have otherwise used `guid`, so you should probably just do that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2415