From 793e2aa3bebe57adae780407dd89a6358a2573b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Thu, 2 Dec 2021 21:45:30 +1300 Subject: [PATCH] Remove pwsh packaging check (false-positive on win7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #5 Windows 7 Powershell at least as of 6.1.7601 supports the tested functionality, making the test useless for checking support. Removing this check completely will rely more on the ability to set the bit as a check for setting the bit; that's already acknowledged in the docs so 👍 --- CHANGELOG.md | 3 +++ src/lib.rs | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13addeb..df0fac1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Next (YYYY-MM-DD) +- Stop checking powershell's `PackageManagement` capability as a Win10 check + ([#5](https://github.com/watchexec/clearscreen/issues/5)). + ## v1.0.7 (2021-08-26) - Flush after E3 sequence in `Terminfo` ([#4](https://github.com/watchexec/clearscreen/issues/4)). diff --git a/src/lib.rs b/src/lib.rs index db15abc..0af909b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1107,10 +1107,6 @@ mod win { return true; } - if pwsh_package_management().unwrap_or(false) { - return true; - } - vt_attempt().unwrap_or(false) } }