I have i3 setup as my window manager and I edited my config and changed the following line in config to get alacritty to launch as my default terminal.
bindsym $mod+Return exec alacritty
But whenI reload i3 and I get a config error and click on the button to edit the config, it loads xcfe-terminal with vim running in it.
How do I make Alacritty the default terminal system-wide?
Now, when I right click on a file on thunar and try to open it in vim, vim opens in xfce4-terminal. That may be an xfce4 issue, and an EndeavorOS specific issue.
That might be some configuration the i3wm Endeavour maintainer did. I installed thunar again and tried it myself, and it also does open in xfce4-terminal, even though my default terminal emulator is set to st.
When I try it in pcmanfm, the gui file manager I use, it just works and opens neovim inside st.
Maybe Joe Kamprad could help you on that?
If you need to get it to work quickly, I would advise you to use another file manager, either through a GUI or a CLI (pcmanfm and ranger/vifm/lf are some choices).
thunar is an xfce4 application we do not set this up to open in xfce4 terminal. but you can change that in thunar afaikā¦
uses exo-open in thunar:
and on eos apps it is set to choose the first one it finds to be usedā¦ so you can try uninstalling xfce4-terminal or set one in configs:
edit: /etc/eos-script-lib-yad.conf
and change + uncomment this line: # EOS_YAD_TERMINAL="terminator"
Hi, I have the exact same issue, so Iām necrobumping this because given solutions donāt work.
The āOpen terminal hereā right-click menu works, however, but opening files (with terminal vim) from thunar doesnāt. Iāve uninstalled xfce4-terminal, but that results in a popup āUnable to find terminal required for applicationā when trying to open a file in terminal vim.
I have edited /etc/eos-script-lib-yad.conf and set EOS_YAD_TERMINAL="alacritty" and as instructed in said file, checked that alacritty is indeed supported.
Also tried reinstalling thunar, vim, and alacritty. Iāve also installed xfce4-settings, and by running xfce4-settings-manager I can go and set my Default Applications, but even this doesnāt help. Only fishy thing I noticed while setting Terminal Emulator in Default Applications is, that when I choose alacritty, the app thumbnail isnāt loaded, while with other apps it is.
I noticed that /usr/share/applications/Alacritty.desktop is capitalized, but playing around with that doesnāt help. exo-open --launch TerminalEmulator launches alacritty as it should. I also tried editing /etc/xdg/xfce4/helpers.rc
Even pcmanfm doesnāt work: āopen with vimā doesnāt do anything and clicking on a text file tries to open xterm.
For now the only way is to use terminal or terminal based file manager and open file explicitly in vim. Running out of ideasā¦
Thanks! And sorry for bringing in issues that may not be i3 specific. I recently used EOS bspwm edition, and using xfce4-settings-manager was enough then to fix the issue, so that lead me to suspect i3.
Iāve now fixed the issue, but given advice didnāt work. I had set the environment variable and the issue still persisted with other file managers, so there definitely is something else going on than just thunar. Maybe I have just misconfigured something, but Iāve pretty much reset everything I could think of.
While searching around for my error message āUnable to find terminal required for applicationā I found this comment in unrelated project, where is said
So now it started to look like gnome / glib issue.
Two little bit ugly fixes I found were
ln -s /usr/bin/alacritty /usr/bin/xterm.
and other from this reddit thread (this I prefer, because itās user specific)
copy /usr/share/applications/vim.desktop to ~/.local/share/applications/vim.desktop and change the Exec-line to Exec=alacritty -e vim %F and set Terminal=false.
I had tried the latter before, but without Terminal=false because that didnāt seem to make any sense. But I now realize that the desktop file effectively launches a terminal emulator, which itself is not opened in any terminal, so I guess thatās whyā¦
I still donāt know why all this trouble was needed this time and not before. But now everything works and Iām happy! I hope this helps if someone else has the same issues.