Winetricks / winetricks

Winetricks is an easy way to work around problems in Wine
GNU Lesser General Public License v2.1
2.66k stars 389 forks source link

A powershell verb would be nice #2201

Open DarkShadow44 opened 3 months ago

DarkShadow44 commented 3 months ago

Seeing how some programs depend on powershell being present, it would be nice if that would be installable with winetricks.

Not sure how doable the native powershell is, but maybe something like powershell-wrapper-for-wine that uses pwsh (powershell core) could be useful.

ProjectSynchro commented 3 months ago

I forked this repository for fun and worked it into some custom winetricks verbs if anyone is interested in trying it out: https://github.com/projectsynchro/powershell-wrapper-for-wine

I looked into how to remove the dependency on ComEmu, however with winebug 49780 still being around, PowerShell Core will output a lot of garbage ANSI colour values that wineconsole doesn't support (but reports that it does). If you run pwsh.exe directly in a newer console like Konsole, the colour values are at least displayed correctly.

Additionally, Powershell Core does support NO_COLOR, however not all parts of powershell seem to respect it. See: https://github.com/PowerShell/PowerShell/issues/21160 and https://github.com/PowerShell/PSReadLine/issues/3918.

I think we can get around the issues in PSReadLine by outright removing the troublesome module.

Let me know if any of this is wanted upstream and I can drop a PR.

ProjectSynchro commented 2 months ago

See progress on this here: https://github.com/Winetricks/winetricks/pull/2211