diff options
Diffstat (limited to 'app-shells/pwsh/files/pwsh-7.3.3-disable-telemetry.patch')
-rw-r--r-- | app-shells/pwsh/files/pwsh-7.3.3-disable-telemetry.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-shells/pwsh/files/pwsh-7.3.3-disable-telemetry.patch b/app-shells/pwsh/files/pwsh-7.3.3-disable-telemetry.patch new file mode 100644 index 000000000000..5a1852a31898 --- /dev/null +++ b/app-shells/pwsh/files/pwsh-7.3.3-disable-telemetry.patch @@ -0,0 +1,11 @@ +--- a/src/System.Management.Automation/utils/Telemetry.cs ++++ b/src/System.Management.Automation/utils/Telemetry.cs +@@ -139,7 +139,7 @@ namespace Microsoft.PowerShell.Telemetry + { + // If we can't send telemetry, there's no reason to do any of this + CanSendTelemetry = !GetEnvironmentVariableAsBool(name: _telemetryOptoutEnvVar, defaultValue: false); +- if (CanSendTelemetry) ++ if (false) + { + s_sessionId = Guid.NewGuid().ToString(); + TelemetryConfiguration configuration = TelemetryConfiguration.CreateDefault(); |