summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-05-24 01:16:04 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-05-24 01:16:04 -0700
commit7926ba5291987636c45b5f20d294a5f751962844 (patch)
treead45f81a536cd61a0a221e1fdfc2614c17df9d1d
parent5000e077a657c3fc90846dd99016e5acee631396 (diff)
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
-rwxr-xr-xhome/xyz/.local/bin/xdg-terminal-exec3
1 files changed, 3 insertions, 0 deletions
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 "$@"