[Bug 725988] Re: WM_CLASS needs to match .desktop file name

IRIE Shinsuke 725988 at bugs.launchpad.net
Mon Mar 12 05:40:54 UTC 2012


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
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/725988

Title:
  WM_CLASS needs to match .desktop file name

Status in “emacs23” package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: emacs23

  emacs ships an emacs.desktop file, but the Debian source package uses
  its own emacsVER.desktop file.

  Unfortunately, this messes up libraries like the shell application
  trackers and bamf that use WM_CLASS as a basis for the application.

  This is fixable by renaming the desktop file, setting the EMACS_CLASS
  #define to be "Emacs23", or setting it through the 'x-resource-class
  variable in emacs lisp.

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



More information about the Ubuntu-sponsors mailing list