Add keywords to .desktop files

Bug #950834 reported by Nicolas Delvaux on 2012-03-09
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
LibreOffice Productivity Suite
Fix Released
Low
One Hundred Papercuts
Low
Unassigned
libreoffice (Ubuntu)
Wishlist
Unassigned

Bug Description

You should, for example, be able to find Calc in the Unity dash if you type "Excel".
One may ask Average Joe to "create a slideshow", so "slide" should find Impress.

Of course, you could find many more potential keywords (and this is even more useful in some other languages).

So, please add a "keywords" section in libreoffice-*.desktop files.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libreoffice-core 1:3.5.0-2ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.28-generic-pae 3.2.9
Uname: Linux 3.2.0-18-generic-pae i686
ApportVersion: 1.94.1-0ubuntu1
Architecture: i386
CheckboxSubmission: 8cf001b4b1d1f2fddc8b471a28b5eaa6
CheckboxSystem: d89cfecb506be0562834433b44d8bcb5
Date: Fri Mar 9 14:51:15 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20111222)
SourcePackage: libreoffice
UpgradeStatus: Upgraded to precise on 2012-02-16 (21 days ago)

Nicolas Delvaux (malizor) wrote :

Please propose appropriate mapping of keywords and file a bug upstream as per: http://wiki.documentfoundation.org/BugReport
and link the bug here. The bug qualifes as "EasyHack" (libreoffice equivalent of PaperCuts).

Note however that "Excel" and comparable keywords are trademarked and thus can cause trouble.

Changed in libreoffice (Ubuntu):
importance: Undecided → Wishlist
Changed in df-libreoffice:
status: New → Incomplete

Originally filled at https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/950834

The Desktop Entry Specification now provide a "Keywords" section.
Extract from the spec[1]:

"A list of strings which may be used in addition to other metadata to describe this entry. This can be useful e.g. to facilitate searching through entries."

This entry is used, for example, by Unity (Ubuntu default desktop) to find apps that the user search in a semantic way.

Here is my proposal (think as "if user search $keyword, he should find $app):
Writer: odt;docx;Text;Letter;CV;
Calc: ods;xls;xlsx;Accounting;Stats;Chart;
Impress: odp;ppt;pptx;Slide;Slideshow;Presentation;
Draw: odg;Vector;Schema;Diagram;
Math: Equation;
Base: Data;

It would also be cool to add words such as "Excel", "PowerPoint", etc. because they became kind of common nouns for some people. We may also add "Oracle", "MySQL", "PostgreSQL", etc. to Base.
But I don't know if it is doable because these words are trademarked.

[1] http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html#key-keywords

Changed in df-libreoffice:
importance: Undecided → Unknown
status: Incomplete → Unknown
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → New
Robert Roth (evfool) on 2012-05-09
Changed in hundredpapercuts:
status: New → Confirmed
Chris Wilson (notgary) on 2012-06-10
Changed in hundredpapercuts:
milestone: none → quantal-2-productivity
importance: Undecided → Low
Changed in df-libreoffice:
importance: Medium → Low
status: New → Confirmed
Changed in libreoffice (Ubuntu):
status: Confirmed → Fix Committed
Changed in df-libreoffice:
status: Confirmed → Fix Released
Chris Wilson (notgary) on 2012-08-29
Changed in hundredpapercuts:
status: Confirmed → Fix Released

I strongly believe that Excel and PowerPoint should be listed as Keywords. LibreOffice does read and write Excel & PowerPoint files and someone looking for an app to do that on Linux should see LibreOffice as an option.

The use of the trademarks is for interoperability. Searching for Excel or PowerPoint in the GNOME Activities Overview or Unity's Dash currently doesn't turn up any results at all which doesn't seem right.

Changed in df-libreoffice:
status: Fix Released → Confirmed

Well if unity/gnome-shell additionally parsed the desktop mime-type record and split application/FOO and application/vnd.BAR.FOO to make FOO a search term then that'd be quite useful.

Anyway, lets leave this specific bug as "fixed" and file additional ones if necessary for extra search terms.

Marco Biscaro committed a patch related to this issue.
It has been pushed to "libreoffice-3-6":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=90524e0f8c6c7a8e6e5e8c0bc48afc2025336e63&g=libreoffice-3-6

fdo#47157 adding Keywords to .desktop files

It will be available in LibreOffice 3.6.4.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

I have created another patch with more keywords at https://gerrit.libreoffice.org/#/c/953/ before I read Caolan's comment (#14).

I can't see any legal problem with using Microsoft trade names here. The trademarks policy (#7) speaks about user-visible text, not about Code.

Changed in df-libreoffice:
status: Confirmed → Fix Released

Samuel Mehrbrodt committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=d8b07e5ba238d529a7610dd302269ee05c5e8fbc

fdo#47157 Add more keywords to .desktop files

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libreoffice - 1:4.0.0~beta2-0ubuntu2

---------------
libreoffice (1:4.0.0~beta2-0ubuntu2) raring; urgency=low

  * Build using the internal libmspub for a first build.
 -- Matthias Klose <email address hidden> Tue, 19 Feb 2013 00:05:26 +0100

Changed in libreoffice (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.