New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] Alacritty crashed and froze when working_directory is invalid #7615
Comments
How are you setting the working directory? |
On my Win11 a minimal alacritty.toml can reproduce this issue: working_directory = "$env:HOMEPATH" I also tried My real configuration is like:
import = [
"~/.alacritty_extra.toml",
]
live_config_reload = true
# other stuff
shell = "pwsh"
working_directory = "C:/Users/XXX" |
we don't support env variables in config. Setting non-existing directory will prevent alacritty from starting. |
@kchibisov |
@Karmenzind but the |
Fine. I also don't think the path processing is a bug. |
Does the same behavior happen when you use an invalid shell? |
Yes. |
Seems like things just don't shut down on any error then? I'd assume it works with closing the shell properly? @kchibisov do you know if winit does anything odd on Windows for error handling/panic hooks? |
[shell]
program = "pwsh"
args = ["-WorkingDirectory ~",] This allows you to use ~ for home directory on Windows, but it requires the newer pwsh instead of powershell https://github.com/PowerShell/PowerShell |
Hi,
I tried to set
working_directory = "$env:HOMEPATH"
. Then the window crashed and froze like this. Have to forcely close it with Task Manager.Navidating to the default path and prompting an error message might be better.
BTW, is there any way to use
~
as theworking_directory
on Windows without hardcoding the whole path?Env
OS: Windows 11
Version: alacritty 0.13.0 (78fa4d6)
Logs
alacritty --print-events
:The text was updated successfully, but these errors were encountered: