Skip to content

Create handle to update settings.json when new distro is added to WSL #19568

@bitglitcher

Description

@bitglitcher

Description of the new feature

I have developed a script to setup the development environment for a team of around 20 people.

The installation of distributions goes smoothly. But I'm unable to update the names of these distributions programmatically. I have to prompt the user to manually open the settings.json file in order to force WindowsTerminal to generate updated settings.json file.

This is required because I'm using jq to parse settings.json to modify distribution profile settings in order to add settings to them. This is impossible if the settings have not been created yet.

I was thinking on requesting a new feature. Something like a command line argument that we can call with WindowsTerminal to update the Settings.json file.

I envision something like this.

wt.exe --update-profiles

This way the settings.json file gets populated with newly added profiles.

Proposed technical implementation details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Needs-Tag-FixDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions