Skip to content

exo-open doesn't respect default terminal without --launch flag

My default terminal is configured in ~/.config/xfce4/helpers.rc:

TerminalEmulator=custom-TerminalEmulator

and ~/.local/share/xfce4/helpers/custom-TerminalEmulator.desktop:

X-XFCE-CommandsWithParameter=alacritty --command %s

Furthermore, text files are associated with the nvim editor:

$ xdg-mime query default text/plain
nvim.desktop

which is a terminal application, i.e. /run/current-system/sw/share/applications/nvim.desktop:

Terminal=true

In the following cases, nvim is correctly opened within alacritty:

  • launching nvim.desktop from the applications menu in xfce4-panel
  • launching nvim.desktop via xfce4-appfinder
  • executing exo-open --launch TerminalEmulator nvim

But in the following cases, nvim is incorrectly opened within xfce4-terminal:

  • executing exo-open /run/current-system/sw/share/applications/nvim.desktop
  • double-clicking a myfile.txt file in thunar
  • executing exo-open myfile.txt

I tried this with exo-open 4.18.0

Edited by Sébastien Hoffmann
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information