startupActions don't trigger on launching from context menu #15365

Closed
opened 2026-01-31 04:36:19 +00:00 by claunia · 2 comments
Owner

Originally created by @TheHussein on GitHub (Sep 28, 2021).

Windows Terminal version (or Windows build number)

10.0.19042.0

Other Software

No response

Steps to reproduce

I've added the following line to my settings.json:
"startupActions": "split-pane -V; move-focus left; split-pane -H; move-focus right; split-pane -H;move-focus left;move-focus up"

This is to open 4 panes. I would like this to always happen. However this does not happen when I open from the context menu in a folder, I just get one in that case.

Expected Behavior

To get 4 panes when I launch from the context menu.

Actual Behavior

I get 1 pane when I launch from the context menu.

Originally created by @TheHussein on GitHub (Sep 28, 2021). ### Windows Terminal version (or Windows build number) 10.0.19042.0 ### Other Software _No response_ ### Steps to reproduce I've added the following line to my `settings.json`: `"startupActions": "split-pane -V; move-focus left; split-pane -H; move-focus right; split-pane -H;move-focus left;move-focus up"` This is to open 4 panes. I would like this to always happen. However this does not happen when I open from the context menu in a folder, I just get one in that case. ### Expected Behavior To get 4 panes when I launch from the context menu. ### Actual Behavior I get 1 pane when I launch from the context menu.
claunia added the Resolution-Duplicate label 2026-01-31 04:36:19 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 28, 2021):

Hmm. Good point. This is sorta like "I want the terminal to set it's working directory when invoked from the shell context menu, not just the startingDirectory for the profile". Kinda like the wt --cwd C:\foo new-tab I mentioned in #9991.

In the past we've marked this request (see #9749) as /dup #6111 So I've gone and added notes there. Thanks!

@zadjii-msft commented on GitHub (Sep 28, 2021): Hmm. Good point. This is sorta like "I want the _terminal_ to set it's working directory when invoked from the shell context menu, not just the `startingDirectory` for the profile". Kinda like the `wt --cwd C:\foo new-tab` I mentioned in #9991. In the past we've marked this request (see #9749) as /dup #6111 So I've gone and added notes there. Thanks!
Author
Owner

@ghost commented on GitHub (Sep 28, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Sep 28, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15365