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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/725988

Title:
  WM_CLASS needs to match .desktop file name

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/725988/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to