Skip to content

Expose the profile GUID to the environment (WT_PROFILE, WT_PROFILE_GUID?) #3589

Closed

Description

Description of the new feature/enhancement

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.

Proposed technical implementation details (optional)

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

Activity

  1. added
    Issue-Feature
    on Nov 15, 2019
  2. ghost added
    Needs-Triage
    on Nov 15, 2019
  3. ghost added
    Needs-Tag-Fix
    on Nov 15, 2019
  4. 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
  5. added
    Area-TerminalConnection
    Issue-Task
    Product-Terminal
    and removed
    Issue-Feature
    Needs-Triage
    on Nov 18, 2019
  6. ghost removed
    Needs-Tag-Fix
    on Nov 18, 2019
  7. 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
  8. Jaykul commented on Feb 15, 2020

    @Jaykul
    Contributor

    I'd settle for setting WT_SESSION to the profile GUID instead of the seemingly pointless session GUID...

  9. oising commented on Mar 10, 2020

    @oising
    Collaborator

    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.

  10. 2 remaining items

  11. DHowett-MSFT commented on Mar 10, 2020

    @DHowett-MSFT
    Contributor

    unique

    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.

  12. JustinGrote commented on Mar 10, 2020

    @JustinGrote
    Author

    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

  13. oising commented on Mar 10, 2020

    @oising
    Collaborator

    Justin Grote (@JustinGrote) It's in the PR now as WT_PROFILE_ID and is in review. Will close when merged.

  14. Jaykul commented on Apr 12, 2020

    @Jaykul
    Contributor

    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.

  15. oising commented on Apr 12, 2020

    @oising
    Collaborator

    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.

    I tried :/

  16. ghost added
    In-PR
    on Apr 17, 2020
  17. ghost closed this as completedin #4852on Apr 17, 2020
  18. ghost removed
    In-PR
    on Apr 17, 2020
  19. ghost added
    Resolution-Fix-Committed
    on Apr 17, 2020
  20. ghost added a commit that references this issue on Apr 17, 2020
    38e7cb0
  21. oising commented on Apr 17, 2020

    @oising
    Collaborator

    It got merged after all - just had to remove the file path env vars for the moment :) /cc Joel Bennett (@Jaykul)

  22. Jaykul commented on Apr 18, 2020

    @Jaykul
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-TerminalConnectionIssue-TaskProduct-TerminalResolution-Fix-Committed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions