wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Allow registering as default terminal app on Windows 11

Open ibay770 opened this issue 1 year ago • 1 comments

The default app dialogue on Windows isn't cutting it so I was wondering if an option for Wezterm to handle the bat/cmd batch files could be made by default, on a double click instead of just a right click.

ibay770 avatar Aug 16 '22 04:08 ibay770

If I understand correctly, you desire to have wezterm be the default console host when opening programs from gui programs that don't have their own console.

https://github.com/microsoft/terminal/blob/main/doc/specs/%23492%20-%20Default%20Terminal/spec.md documents the complex handoff required for that. At a high level, it sounds like wezterm-gui would need to be built so that COM activation is possible, implement a particular COM interface, and then register itself as a default terminal.

The spec doesn't specify the minimum version of Windows in which that is supported, but https://devblogs.microsoft.com/commandline/windows-terminal-as-your-default-command-line-experience/ suggests that Windows 11 is required.

I'm in no rush to install Windows 11 on my AMD system (heard too many stories about terrible performance), so I've no way to test this functionality in the foreseeable future.

wez avatar Aug 16 '22 13:08 wez