Skip to content

Make it possible to use an existing profile if an app is launched via defterm #10952

Closed

Description

Description of the new feature/enhancement

There should be an option to check whether there is a profile that would match the command line of a console app launched when Terminal is set as default and use that profile.

This would be a nice alternative to using the conhost configuration (#9458) as some people might prefer to use their already defined profiles rather than what's defined in the registry or shortcuts.

Proposed technical implementation details (optional)

Some extra thought should be given to handling command line arguments in both the profile's commandLine and the launched app's command line. A sane compromise could be that a launched app's command line would only match commandLine with either the exact same arguments or none at all to make sure that cmd.exe doesn't get launched with a profile defined for some batch file.

Activity

  1. added
    Issue-Feature
    on Aug 15, 2021
  2. ghost added
    Needs-Triage
    on Aug 15, 2021
  3. ghost added
    Needs-Tag-Fix
    on Aug 15, 2021
  4. WSLUser commented on Aug 16, 2021

    @WSLUser
    Contributor

    I'm pretty sure part of "what's defined in registry or shortcuts" would include the existing profiles. When that feature is added, passing those existing profiles off to the registry would almost certainly be a hard requirement for precisely the use-case you bring up here.

  5. zadjii-msft commented on Aug 17, 2021

    @zadjii-msft
    Member

    Michael Niksa (@miniksa) has thoughts on this. (also related: #10669)

  6. ghost removed
    Needs-Tag-Fix
    on Aug 17, 2021
  7. miniksa commented on Aug 17, 2021

    @miniksa
    Contributor

    I did think that I had a feature logged for this but I cannot find it. It might have just been a feature in my head. I would like to perform some sort of matching against the profiles and left provisions in for passing this sort of information around in at least a few places.

  8. added
    Issue-Task
    and removed
    Issue-Feature
    on Aug 17, 2021
  9. removed
    Needs-Triage
    on Aug 27, 2021
  10. ghost added
    In-PR
    on Oct 1, 2021
  11. ghost closed this as completedin #11390on Oct 8, 2021
  12. ghost added a commit that references this issue on Oct 8, 2021
    479ef26
  13. ghost removed
    In-PR
    on Oct 8, 2021
  14. ghost added
    Resolution-Fix-Committed
    on Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DefAppIssue-TaskProduct-TerminalResolution-Fix-Committed

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions