diff --git a/emacs-desktop.sh b/emacs-desktop.sh index d407ca3..a94c100 100755 --- a/emacs-desktop.sh +++ b/emacs-desktop.sh @@ -6,7 +6,7 @@ if [ "$XDG_SESSION_TYPE" = 'x11' ]; then emacs="$(readlink -f /usr/bin/emacs)" emacs="${emacs##*/}" - emacs="${emacs%-*.*.*}" + emacs="${emacs%-*.*}" if [ "$emacs" = 'emacs' ]; then if type emacs-gtk+x11 >/dev/null; then exec emacs-gtk+x11 "$@"