Comment 11 for bug 725988

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

Just renaming emacsVER.desktop to emacs.desktop actually works, but that causes another issue that the emacs.desktop file will conflict with the other flavor's one.

So I suggest the solution as follows:

1. Install upstream emacs.desktop file into /usr/share/emacs/23.3/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.