XDG Default Applications specification proposal
bruno at clisp.org
Fri Jul 10 08:01:30 UTC 2020
> In particular, this specifies which terminal application should be
> used to launch applications from desktop entries with Terminal=true.
Indeed, there is a need to make this easier. I wrote this code the other day:
;; Returns the terminal emulator program for a given desktop environment.
(defun terminal-program (&optional (desktop (desktop-environment)))
((:GNOME-2 :GNOME-3) "gnome-terminal")
(t (if (getenv "DISPLAY") "xterm" nil))
It's pretty ugly to have to enumerate the desktop environments in this way.
More information about the xdg