Open phistep opened 9 months ago
Use the default terminal.
It does open the default terminal /Applications/Utilities/Terminal.app
(while I personally use iTerm2), but the terminal emulator does not make any difference, they're all going to respect the login shell. I don't want to change my login shell just for Whisky.
My guess would be that https://github.com/Whisky-App/Whisky/blob/ddabb28208f401a5d659d08485078c37882c28a0/Whisky/Utils/Winetricks.swift#L29C7-L29C7
let winetricksCmd = #"PATH=\"\#(Wine.binFolder.path):$PATH\" WINE=wine64 WINEPREFIX=\"\#(bottle.url.path)\" \"\#(winetricksURL.path(percentEncoded: false))\" \#(command)"#
could be changed to
let winetricksCmd = #"/bin/sh -c "PATH=\"\#(Wine.binFolder.path):$PATH\"; WINE=wine64; WINEPREFIX=\"\#(bottle.url.path)\"; \"\#(winetricksURL.path(percentEncoded: false))\"; \#(command)"#
(using /bin/sh
as the shell to execute the command using -c
, then define the shell variables not as preamble to the shell command but as separate statements in the "script" parameter, thus one has to terminate each variable definition statement using ;
.
Description
I use https://xon.sh/ as my login shell and it is not POSIX compatible. In particular, environment variables and string quoting work differently from regular shells.
when I change my login shell to
/bin/zsh
, everything works as expectedSteps to reproduce
xonsh
.Winetricks...
button at the bottom of the screencorefonts
Run...
Expected behaviour
The winetricks command is executed in a POSIX compatible system shell regardless of the users' login shell. The command executes without error.
Logs
no Wine process launched as command could not be executed
What version of Whisky are you using?
2.0.1
What version of macOS are you using?
Sonoma (macOS 14)
Issue Language