Skip to content

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

@dhrdlicka

Description

@dhrdlicka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DefAppIssue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions