FS#46335 - [xemacs] When having both emacs and xemacs installed, the xemacs icon is used also for emacs windows

Attached to Project: Community Packages
Opened by Tassilo Horn (tsdh) - Friday, 18 September 2015, 06:04 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Tuesday, 20 September 2016, 18:54 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

I have both the extra/emacs and the community/xemacs packages installed. When I open a new GNU Emacs window, the GNOME shell shows the XEmacs icon in its upper bar when the Emacs window is selected. The same is true for XEmacs windows, but of course, there it is correct. So somehow the xemacs package seems to override the icon for GNU Emacs.

I don't see why that is. /usr/share/applications/xemacs.desktop specifies /usr/share/pixmaps/xemacs-icon.xpm as Icon which is the XEmacs icon. /usr/share/applications/emacs.desktop specifies just "Icon=emacs" but I cannot find an emacs.{png,svg,xpm} which would be the XEmacs logo instead of the emacs one...

I've tried editing /usr/share/applications/emacs.desktop and added an absolute path to /usr/share/icons/hicolor/32x32/apps/emacs.png as Icon, then ran update-desktop-database, and then started GNU Emacs, but still I get the XEmacs icon. So now I'm out of ideas...

Additional info:
community/xemacs 21.5.33-6
extra/emacs 24.5-2

Steps to reproduce:
Install both community/xemacs and extra/emacs, then start GNU Emacs, and the XEmacs icon will appear in the taskbar of your favorite WM.
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Tuesday, 20 September 2016, 18:54 GMT
Reason for closing:  Won't fix
Additional comments about closing:  I've dropped xemacs from [community] to AUR. Project and its web seems dead.
https://en.wikipedia.org/wiki/XEmacs#XEm acs_and_GNU_Emacs
Comment by Doug Newgard (Scimmia) - Sunday, 20 September 2015, 14:28 GMT
Sounds more like a GNOME problem.
Comment by Tassilo Horn (tsdh) - Monday, 21 September 2015, 12:27 GMT
I just asked on the GNOME IRC channel. Gnome searches for the icon to be used by matching the WM_CLASS of the window in question to the *.desktop files, and then uses the Icon of the desktop file which matches. Both /usr/share/applications/xemacs.desktop and /usr/share/applications/emacs.desktop specify StartupWMClass=Emacs, so both match. And then it's a matter of how the search is implemented that XEmacs always "wins", e.g., maybe the search is alphabetically with last one wins.

So now I've changed the xemacs.desktop to StartupWMClass=XEmacs, and now I get the GNU Emacs icon for Emacs and the XEmacs icon for XEmacs.

I think the community/xemacs package should change xemacs.desktop accordingly. XEmacs (the devel version) now (since end of last year) includes its own xemacs.desktop file, and that does specify the StartupWMClass=XEmacs, too, so it looks like the XEmacs devs would agree.

See this commit: https://bitbucket.org/xemacs/xemacs/commits/bf1e138111599472684358473453aa7922d4a59a
Comment by Tassilo Horn (tsdh) - Friday, 13 May 2016, 05:43 GMT
Bump, just because the XEmacs package has recently been updated without taking this into consideration (and this issue laying around for more than half a year).

Loading...