Comment 5 for bug 949126

Revision history for this message
IRIE Shinsuke (irie) wrote :

Attached a patch. This is for debian directory (not a quilt patch).

This patch removes the patch introduced in LP #725988, and gives another solution which creates a symlink emacs.desktop as follows:

1. Install upstream emacs.desktop file into /usr/share/emacs/@FULL_VERSION@/etc/

2. Use the Debian alternatives system for /usr/share/applications/emacs.desktop by adding the following to emacsVER.postinst:

  --slave /usr/share/applications/emacs.desktop emacs.desktop \
          /usr/share/emacs/@FULL_VERSION@/etc/emacs.desktop \

3. Remove @MENU_VERSION@ from StartupWMClass in emacsVER.desktop

Note that emacsVER.desktop is still necessary when the multiple flavors (emacs23, emacs24, emacs-snapshot, etc.) are installed. emacsVER.desktop will be used to launch the desired flavor's Emacs.