ubuntu setup kitty as default terminal code example
Example: make kitty terminal the default terminal on ubuntu
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator `which kitty` 50
sudo update-alternatives --config x-terminal-emulator