-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Set the Windows Terminal as the default terminal #1093
base: main
Are you sure you want to change the base?
Conversation
@Ana06 Also, running |
@d35ha is proposing using the windows terminal to open the shortcuts in the Tools directory, is this PR achieving this? |
@Ana06 |
@@ -54,6 +55,12 @@ try { | |||
$label = "Open Terminal here" | |||
$icon = "$executablePath" | |||
VM-Add-To-Right-Click-Menu -menuKey $toolName -menuLabel $label -command $command -menuIcon $icon -type "directory" -background | |||
|
|||
# Set windows terminal as the default terminal (effective only when OS Build >= 19045.3031) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using 10.0.19045.0
(downloaded from the recommended link in FLARE-VM), so this approach does not work
I looked into this a little bit more. I wanted to try and find a way to have any "console app" shortcut open with An alternative would be that we force Let me know if that's the preferred route and I can work on that. |
Assuming we go the route of a forced Windows Terminal install...I got something mostly working for Command Prompt, but it seems like Powershell is going to be a lot more of an issue due to a long standing bug with Windows Terminal and how it interprets semicolons: microsoft/terminal#13264 This makes it very difficult, if not impossible to do our powershell shortcuts. I was able to make one work, but it would require removing the For reference for powershell, I modified This still seems to work as expected, just a re-write of the original command we used so it doesn't use a semicolon: And I modified
This generated the following shortcut target: For reference for Command Prompt (console apps) that seems to just 'work', I tested with
|
Thanks for the research @emtuls! I suggest we merge this PR as it is, as it seems it is not easy to support it in our Windows version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is nice that previous versions benefit from the improvement even if it does not work in older version. I have tested it in 10.0.19045.0
and it does not seem to introduce any issues (it also does modify the behavior).
Closes #971.
Closes #973.