Originally posted by **mkpaz** November 22, 2022
I tried this, but still get the close confirmation on tab middle click.
```lua
window_close_confirmation = 'NeverPrompt',
skip_close_confirmation_for_processes_named = { 'bash', 'sh', 'zsh', 'fish', 'tmux' },
keys = {
{
key = 'w', mods = 'CTRL|SHIFT', action = wezterm.action.CloseCurrentTab { confirm = false }
},
}
```
It looks like `skip_close_confirmation_for_processes_named` not working for me, while I don't use multiplexer and don't have any spawned processes, just a pure bash shell. I spent like an hour trying to fix this with no luck and let me say it's very annoying to not be able to disable something that is default in any other terminal emulator. Also, requiring to redefine keymap to disable the confirmation looks like dirty hack, it's really should be less complicated.
The resolution was: using an rpm or appimage made it work again. This is a consequence of flatpak's sandboxing/process namespacing.
I had the same problem, solved by setting skip_close_confirmation_for_processes_named = { 'flatpak-spawn' }.
This removes the confirmation for every process since inside flatpak everything is launched by flatpak-spawn.
Discussed in https://github.com/wez/wezterm/discussions/2780
The resolution was: using an rpm or appimage made it work again. This is a consequence of flatpak's sandboxing/process namespacing.