Skip to content

Commit

Permalink
fix(wezterm,wsl): dbus race condition
Browse files Browse the repository at this point in the history
nix-community/NixOS-WSL#375
present in upstream wsl
when start wsl and immediately dropping into a shell
- sudo doesn't work
- systemctl --user doesn't work

possibly more. these are "fixed"
  • Loading branch information
xieve committed Sep 12, 2024
1 parent 4fa75c8 commit 35b9cb7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ config.front_end = "WebGpu"

if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
config.default_domain = "WSL:NixOS"
config.wsl_domains = {
{
name = "WSL:NixOS",
distribution = "NixOS",
default_prog = {
"/run/current-system/sw/bin/zsh",
"-c",
"until [ -S /run/dbus/system_bus_socket ]; do sleep 1; done; exec zsh",
}
},
}
config.window_decorations = "RESIZE|INTEGRATED_BUTTONS" -- does not work on Gnome currently
else
config.window_background_opacity = 0.8
Expand Down

0 comments on commit 35b9cb7

Please sign in to comment.