~scoopta/wofi#176: 
Change terminal emulator that drun starts

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.

Status
RESOLVED DUPLICATE
Submitter
~mb720
Assigned to
No-one
Submitted
3 years ago
Updated
2 years ago
Labels
No labels applied.

~gullegugg 3 years ago

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)

~mb720 3 years ago

Thanks for your reply gullegugg, but setting term=kitty in the config or using --term did not have an effect. The started terminal in wofi --term=kitty --show drun was still xterm.

Inspired by this, I did the following:

  1. 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"
  2. 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.

~atemtuhecruos 3 years ago

I believe this is related: https://todo.sr.ht/%7Escoopta/wofi/73

~scoopta REPORTED DUPLICATE 2 years ago

This is a duplicate of #73 as someone else pointed out. There is currently nothing wofi can do for this.

Register here or Log in to comment, or comment via email.