wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
16.75k stars 751 forks source link

flatpak: skip_close_confirmation_for_processes_named does not work #2783

Open wez opened 1 year ago

wez commented 1 year ago

Discussed in https://github.com/wez/wezterm/discussions/2780

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.

Level-fiver commented 1 year ago

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.