[Libreoffice-bugs] [Bug 119202] LibreOffice apps should not change their WM_CLASS values after being launched

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 13 17:00:47 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=119202

--- Comment #11 from Jan-Marek Glogowski <glogow at fbihome.de> ---
(In reply to Paul from comment #10)
> OK...  I'm sorry, but you've rather managed to confuse me here :)

Yeah sorry. I'm trying to understand what's going on. My assumption is that
grouping just happens on WM_CLASS. The kde5 VCL doesn't set or change it and
it's always soffice.bin.

> There is only one instance of LibreOffice and one (LO) window.
> 
> Within the the (KDE) Icon Only Task Manager I have a "pinned" icon (which on
> mouseover shows LibreOffice Writer) for Writer.
> 
> This launches LibreOffice Writer using
> "/usr/share/applications/writer.desktop" (with the exec line
> "Exec=libreoffice --writer %U")
> 
> When Writer launches via that icon, a second icon (mouseover soffice.bin)
> appears at the far right of the Task Manager.

Ok - now I think I understand what's going on. The pinned icon is wrong.

This was probably created when starting with gtk3 or gtk3_kde5. It saved that
WM_CLASS, which was WMCLASS("libreoffice", "libreoffice-writer"), because gtk3
changes it for some Gnome grouping requirement, so documents are grouped per
type (Writer, Calc, etc.) which have normally separate launch icons.

As I wrote kde5 doesn't do this (yet). It always reports soffice.bin. So the
new LO process won't be grouped with your pinned icon.

I don't know if different icons for the same app can be handled correctly.
Thing is LO can just change the WM_CLASS based on the document type very late,
as document loading is late, so these workarounds are for grouping in KDE are
needed.

Gtk+ and KDE devs claim to not change the WM_CLASS, but this doesn't match with
LO's requirements, which has different "main" modules with icons in the same
binary name.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190613/283c58dd/attachment.html>


More information about the Libreoffice-bugs mailing list