FS#23658 - [libreoffice] .desktop file naming prevents docks to match LO windows properly.

Attached to Project: Arch Linux
Opened by Felipe Morales (fmoralesc) - Friday, 08 April 2011, 21:14 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 08 May 2011, 07:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Libreoffice windows aren't matched properly by docks because of LO's .desktop files naming.

Additional info:
* libreoffice 3.3.2
* gnome-shell 3.0
* docky-bzr (? perhaps related)

Steps to reproduce:
1) Open a libreoffice application from the gnome-shell dash (the dock thing).
2) The new window doesn't match the item in the dash and gets added as a different entry.

I submitted a bug and patch to gnome-shell (https://bugzilla.gnome.org/show_bug.cgi?id=647224), but they replied this was due to the .desktop files not matching the WM_CLASS properties of the libreoffice windows. Currently in arch, those are writer.desktop, calc.desktop, etc., but its seems they should be libreoffice-writer.desktop, libreoffice-calc.desktop, etc.

I've found a similar problem with docky (see my comments on http://aur.archlinux.org/packages.php?ID=31250), and I think it's because of the same thing.

Is it possible to change the .desktop files in the libreoffice package, or would it imply some kind of trouble?
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 08 May 2011, 07:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  it's fixed in trunk for future releases.
Comment by Andreas Radke (AndyRTR) - Saturday, 09 April 2011, 07:36 GMT
What needs to be done to the LibO .desktop files? Is this because we rename some properties in them or has this to be done upstream by the LibO devs?
Comment by Felipe Morales (fmoralesc) - Saturday, 09 April 2011, 15:20 GMT
The problem seems to be the filenames themselves; the contents of the files are just fine. It appears that they need to have the prefix "libreoffice-" added to them.
Comment by Felipe Morales (fmoralesc) - Saturday, 09 April 2011, 15:34 GMT
For reference, the files are:

/usr/share/applications/base.desktop > /usr/share/applications/libreoffice-base.desktop
/usr/share/applications/calc.desktop > /usr/share/applications/libreoffice-calc.desktop
/usr/share/applications/web.desktop > /usr/share/applications/libreoffice-web.desktop
/usr/share/applications/math.desktop > /usr/share/applications/libreoffice-math.desktop
/usr/share/applications/draw.desktop > /usr/share/applications/libreoffice-draw.desktop
/usr/share/applications/impress.desktop > /usr/share/applications/libreoffice-impress.desktop
/usr/share/applications/template.desktop > /usr/share/applications/libreoffice-template.desktop
/usr/share/applications/writer.desktop > /usr/share/applications/libreoffice-writer.desktop
/usr/share/applications/startcenter.desktop > /usr/share/applications/libreoffice-startcenter.desktop
Comment by Andreas Radke (AndyRTR) - Saturday, 07 May 2011, 17:55 GMT
Other distros seem to do the same file renaming. I'm just going to fix it for the upcoming 3.4 builds. Thanks for pointing this out.
Comment by Greg (dolby) - Saturday, 07 May 2011, 18:10 GMT
How about asking from the LO developers to change it?
I'm not against renaming the files in Arch, but if this is a universal problem it should be fixed by them.
Comment by Felipe Morales (fmoralesc) - Sunday, 08 May 2011, 00:03 GMT
It doesn't seem to be a problem upstream. The (binary) packages provided by The Document Foundation include .desktop files prefixed by "libreoffice-".

Loading...