Skip to content

Conversation

@meitinger
Copy link
Contributor

Description

Don't use Windows Terminal if the user explicitly opted out.

Checklist

  • I have updated tests where applicable.
  • I have added an entry to the CHANGELOG.

@@ -1,5 +1,5 @@
$tool = $args[0]
if (Get-Command wt -ErrorAction SilentlyContinue) {
if ((Get-Command wt -ErrorAction SilentlyContinue) -and ((Get-ItemProperty -LiteralPath 'HKCU:\Console\%%Startup' -Name 'DelegationConsole' -ErrorAction SilentlyContinue).DelegationConsole -ne '{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: Get-ItemPropertyValue is no good in that case.

@mhils mhils merged commit 0e3b099 into mitmproxy:main Jan 16, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants