Don’t assume a prerelease Emacs version in emacs-desktop

Fixes #2273957.
This commit is contained in:
Peter Oliver 2024-04-09 14:28:54 +01:00
parent bc7d4e0406
commit 1ebda76805

View File

@ -6,7 +6,7 @@
if [ "$XDG_SESSION_TYPE" = 'x11' ]; then if [ "$XDG_SESSION_TYPE" = 'x11' ]; then
emacs="$(readlink -f /usr/bin/emacs)" emacs="$(readlink -f /usr/bin/emacs)"
emacs="${emacs##*/}" emacs="${emacs##*/}"
emacs="${emacs%-*.*.*}" emacs="${emacs%-*.*}"
if [ "$emacs" = 'emacs' ]; then if [ "$emacs" = 'emacs' ]; then
if type emacs-gtk+x11 >/dev/null; then if type emacs-gtk+x11 >/dev/null; then
exec emacs-gtk+x11 "$@" exec emacs-gtk+x11 "$@"