You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose the profile GUID to the environment (WT_PROFILE, WT_PROFILE_GUID?) #3589
We need a way to detect within a running terminal what profile instantiated it, so that we can make on-the-fly changes to the config (like change the background or font). The MSTerminalSetting is an example of that method.
Provide the steps/api to PInvoke to get the profile guid based on the session guid. OR expose the session's profile guid to an environment variable like WT_PROFILE
Reacted by Chris Duck, James O'Neill and Joel Bennett
changed the title [-]Resolve the Profile name from the WT_SESSION ID, or publish the profile GUID as WT_SESSIONGUID[/-][+]Expose the profile GUID to the environment (WT_PROFILE, WT_PROGILE_GUID?)[/+]on Nov 18, 2019
changed the title [-]Expose the profile GUID to the environment (WT_PROFILE, WT_PROGILE_GUID?)[/-][+]Expose the profile GUID to the environment (WT_PROFILE, WT_PROFILE_GUID?)[/+]on Nov 18, 2019
I'd settle for setting WT_SESSION to the profile GUID instead of the seemingly pointless session GUID...
It's possible to have the profile open in multiple places though, with different "sessions" -- I think this guid is keyed to the conpty connection itself, so it kinda needs to be unique globally.
WT_SESSION is an integral part of #766 and #961 that allows shells to cache and recover state as part of overall session restoration. It's analogous to TERMINAL_SESSION_ID on OS X.
Oisin Grehan (@oising) As the OP of this issue, the proposal you have here #4852 (comment) would satisfy my requirement and this can be closed once merged
Activity
[-]Resolve the Profile name from the WT_SESSION ID, or publish the profile GUID as WT_SESSIONGUID[/-][+]Expose the profile GUID to the environment (WT_PROFILE, WT_PROGILE_GUID?)[/+][-]Expose the profile GUID to the environment (WT_PROFILE, WT_PROGILE_GUID?)[/-][+]Expose the profile GUID to the environment (WT_PROFILE, WT_PROFILE_GUID?)[/+]Jaykul commentedon Feb 15, 2020
I'd settle for setting WT_SESSION to the profile GUID instead of the seemingly pointless session GUID...
oising commentedon Mar 10, 2020
It's possible to have the profile open in multiple places though, with different "sessions" -- I think this guid is keyed to the conpty connection itself, so it kinda needs to be unique globally.
2 remaining items
DHowett-MSFT commentedon Mar 10, 2020
WT_SESSIONis an integral part of #766 and #961 that allows shells to cache and recover state as part of overall session restoration. It's analogous toTERMINAL_SESSION_IDon OS X.JustinGrote commentedon Mar 10, 2020
Oisin Grehan (@oising) As the OP of this issue, the proposal you have here #4852 (comment) would satisfy my requirement and this can be closed once merged
oising commentedon Mar 10, 2020
Justin Grote (@JustinGrote) It's in the PR now as
WT_PROFILE_IDand is in review. Will close when merged.Jaykul commentedon Apr 12, 2020
But we won't get it until some time after 1.0 - so the idea of using it in a script is basically DOA for months.
oising commentedon Apr 12, 2020
I tried :/
Add WT_PROFILE_ID to the environment of the spawned process (#4852)
oising commentedon Apr 17, 2020
It got merged after all - just had to remove the file path env vars for the moment :) /cc Joel Bennett (@Jaykul)
Jaykul commentedon Apr 18, 2020
Thanks Oisin Grehan (@oising)!