Bug 506000

Summary: Mistakes/errors in the .desktop file while packaging for Fedora
Product: [Applications] ktimetracker Reporter: Steve Cossette <farchord>
Component: generalAssignee: Alexander Potashev <aspotashev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Steve Cossette 2025-06-22 20:03:42 UTC
We're working on packaging ktimetracker for Fedora. When validating the .desktop file, it causes a notice:

+ desktop-file-validate /builddir/build/BUILD/ktimetracker-6.0.0-build/BUILDROOT//usr/share/applications/org.kde.ktimetracker.desktop
/builddir/build/BUILD/ktimetracker-6.0.0-build/BUILDROOT//usr/share/applications/org.kde.ktimetracker.desktop: hint: value "Qt;KDE;Utility;Office;Monitor;X-KDE-Utilities-PIM;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
/builddir/build/BUILD/ktimetracker-6.0.0-build/BUILDROOT//usr/share/applications/org.kde.ktimetracker.desktop: hint: value item "Monitor" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: System, or Network
Comment 1 Bug Janitor Service 2025-06-28 16:53:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/ktimetracker/-/merge_requests/53
Comment 2 Thiago Sueto 2025-06-29 14:50:27 UTC
Git commit 1683a12dadaded3d4451af1458e1d8505e8220c8 by Thiago Sueto.
Committed on 28/06/2025 at 16:46.
Pushed by thiagosueto into branch 'master'.

Validate desktop file

The current desktop file causes the following error:

```
hint: value "Qt;KDE;Utility;Office;Monitor;X-KDE-Utilities-PIM;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
hint: value item "Monitor" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: System, or Network
```

* Remove the "Utility" category since that's not quite what it stands for (Small utility application, "Accessories") according to the [Desktop Menu specification](https://specifications.freedesktop.org/menu-spec/latest/category-registry.html).
* Use ProjectManagement instead of Monitor because it's an additional category based off Office

Qt and KDE are correct. X-KDE-Utilities-PIM is probably used somewhere or some leftover, but either way it doesn't trigger desktop-file-validate.

M  +1    -1    src/org.kde.ktimetracker.desktop

https://invent.kde.org/pim/ktimetracker/-/commit/1683a12dadaded3d4451af1458e1d8505e8220c8