From 7926ba5291987636c45b5f20d294a5f751962844 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 24 May 2025 01:16:04 -0700 Subject: xdg-terminal-exec use alacritty to open Terminal=true desktop entries After uninstall gnome-console, apps desktop entries with Terminal=true can't be opened with a terminal any more. In the past, those are opened with gnome console. The reason is it hardcoded some terminals and there's not alacritty, see [0]. This url [1] wrote that this commit [2] now support using other terminals using xdg-terminal-exec wrapper. As describe in the commit, this is only temporary solution, a proper solution is xdg-default-apps specification see [3] which does not seem to making any progress. The xdg-terminal-exec wrapper way works great and enough for me tho. [0] https://unix.stackexchange.com/a/642886 [1] https://unix.stackexchange.com/a/748350 [2] https://gitlab.gnome.org/GNOME/glib/-/commit/22e1b9bcc0ca7cd1ba2457ddf5b5545752f9c7ea [3] https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/54 --- home/xyz/.local/bin/xdg-terminal-exec | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 home/xyz/.local/bin/xdg-terminal-exec diff --git a/home/xyz/.local/bin/xdg-terminal-exec b/home/xyz/.local/bin/xdg-terminal-exec new file mode 100755 index 00000000..77dd8d05 --- /dev/null +++ b/home/xyz/.local/bin/xdg-terminal-exec @@ -0,0 +1,3 @@ +#!/bin/sh + +exec alacritty -e "$@" -- cgit v1.2.3-70-g09d2