Shell launch arguments are not respected #2554

Open
opened 2026-01-30 22:58:14 +00:00 by claunia · 0 comments
Owner

Originally created by @rasmuskriest on GitHub (Jul 4, 2019).

Currently, Windows Terminal does not respect shell launch arguments. According to the SettingsSchema.md, commandline is the the only link to the shell executable. An additional property similiar to startingDirectory, i.e. launchArguments, could fix this problem.

Environment

Windows build number: 18362.207
Windows Terminal version: 0.2.1831.0

Steps to reproduce

  1. Create a profile with launch arguments, e.g. "commandline": "powershell.exe -noprofile" or "commandline": "wsl.exe -e vi".
  2. Launch the newly created profile.

Expected behavior

The shell should start with the launch arguments in mind, e.g. without sourcing $Profile or directly starting into vi.

Actual behavior

The shell is being started as if no launch argument had been passed.

Originally created by @rasmuskriest on GitHub (Jul 4, 2019). Currently, Windows Terminal does not respect shell launch arguments. According to the [SettingsSchema.md](https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md#profiles), `commandline` is the the only link to the shell executable. An additional property similiar to `startingDirectory`, i.e. `launchArguments`, could fix this problem. # Environment ```none Windows build number: 18362.207 Windows Terminal version: 0.2.1831.0 ``` # Steps to reproduce 1. Create a profile with launch arguments, e.g. `"commandline": "powershell.exe -noprofile"` or `"commandline": "wsl.exe -e vi"`. 2. Launch the newly created profile. # Expected behavior The shell should start with the launch arguments in mind, e.g. without sourcing `$Profile` or directly starting into `vi`. # Actual behavior The shell is being started as if no launch argument had been passed.
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-30 22:58:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2554