Hi and thanks for wofi!
When running wofi --show drun
and running a terminal application like Vifm or Neovim, it starts that program inside xterm.
Instead of xterm, I'd like to use another terminal editor, like kitty. How do I change that?
I have a hunch that xterm is registered as the x-terminal-emulator
and that I need to give x-terminal-emulator
a new value. These answers describe how to change x-terminal-emulator
on various desktop environments. I tried gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/kitty
but this didn't change wofi's behavior, it still started xterm.
I'd prefer to set the default terminal emulator for wofi (and other programs) globally instead of changing the desktop entries in /usr/share/applications
or creating new desktop entries in ~/.local/share/applications
.
I'm on Arch Linux, running Sway.
You can set it in the config file with
term=TERM
(https://man.archlinux.org/man/community/wofi/wofi.5.en) or with a cli option-t, --term=TERM
(https://man.archlinux.org/man/community/wofi/wofi.1.en)
Thanks for your reply gullegugg, but setting
term=kitty
in the config or using--term
did not have an effect. The started terminal inwofi --term=kitty --show drun
was still xterm.Inspired by this, I did the following:
- Uninstalled xterm. Now launching an application like vifm with wofi produces the error "/usr/share/applications/vifm.desktop cannot be executed: Unable to find terminal required for application"
- Link xterm to kitty:
cd /usr/bin/; sudo ln -s kitty xterm
I wish I'd know a more elegant way to set the terminal for desktop entries in Arch Linux, but this works for now.
I believe this is related: https://todo.sr.ht/%7Escoopta/wofi/73
This is a duplicate of #73 as someone else pointed out. There is currently nothing wofi can do for this.