Don’t assume a prerelease Emacs version in emacs-desktop
Fixes #2273957.
This commit is contained in:
parent
bc7d4e0406
commit
1ebda76805
@ -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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user