! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
exo-open cannot open text files with vim
Status:
RESOLVED: INVALID

Comments

Description Tom Eaton 2018-03-29 11:31:49 CEST
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?
Comment 1 Andre Miranda editbugs 2018-03-30 04:40:24 CEST
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
Comment 2 Theo Linkspfeifer editbugs 2019-06-14 18:15:59 CEST
Recent change in glib: https://gitlab.gnome.org/GNOME/glib/merge_requests/795
Comment 3 Andre Miranda editbugs 2019-06-16 23:15:16 CEST
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
Comment 4 Theo Linkspfeifer editbugs 2019-07-06 23:36:22 CEST
*** Bug 12583 has been marked as a duplicate of this bug. ***
Comment 5 Andre Miranda editbugs 2019-09-26 03:57:38 CEST
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.

Bug #14309

Reported by:
Tom Eaton
Reported on: 2018-03-29
Last modified on: 2019-09-26
Duplicates (1):
  • 12583 xterm is used to open files with desktop entry with Terminal=true

People

Assignee:
Nick Schermer
CC List:
4 users

Version

Attachments

Additional information