I am using xfce4 on Arch Linux. My terminal emulator is xfce4-terminal. exo-open file.txt fails to open the text file in vim. It errors saying "Failed to execute child process "xterm" (No such file or directory)". However, exo-open --launch TerminalEmulator correctly opens xfce4-terminal. Interestingly, exo-open --launch TerminalEmulator /usr/bin/vim file.txt opens the file without an issue. Launching the desktop file of vim correctly opens it in xfce4. I have read that vim "expects" xterm, is this the cause of the issue, if so is there a workaround?
I found this workaround: copy vim.desktop to ~/.local/share/applications and modify it to: Exec=xfce4-terminal -x vim %F Terminal=false Interestingly, if one launches vim from app-launcher or Xfce panel menu, it opens in xfce4-terminal as expected. Source: https://askubuntu.com/questions/788736/open-vim-in-xfce4-terminal-from-thunar
Recent change in glib: https://gitlab.gnome.org/GNOME/glib/merge_requests/795
Thanks Theo for the heads up. That commit made into the dev release 2.61.1[1] and 2.62.0 is scheduled to Sep 2, 2019[2], hopefully this will be fixed with that version. 1 - https://gitlab.gnome.org/GNOME/glib/tags/2.61.1 2 - https://gitlab.gnome.org/GNOME/glib/milestones/6
*** Bug 12583 has been marked as a duplicate of this bug. ***
I updated to glib 2.62.0 and now exo-open file.txt opens vim in xfce4-terminal as expected. I'm closing as invalid because nothing was fixed from exo or xfce4-terminal side, please reopen if this issue persists.