Bug 440822 - Bugs in .desktop files
Summary: Bugs in .desktop files
Status: RESOLVED DUPLICATE of bug 439510
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.9.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-10 08:22 UTC by adalbert.hanssen
Modified: 2021-08-10 08:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
error messages about parsing errors in .desktop files shown in menulibre (65.00 KB, image/png)
2021-08-10 08:22 UTC, adalbert.hanssen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adalbert.hanssen 2021-08-10 08:22:34 UTC
Created attachment 140625 [details]
error messages about parsing errors in .desktop files shown in menulibre

SUMMARY

After installing Okular on Xubuntu 20.04.2 LTS by

sudo apt install okular

menulibre reports errors in desktop files (see attached screenshot):

In the first one, /usr/share/applications/org.kde.kdeconnect_open.desktop, it states

Type=Service

The error message tells me, Type=Application were right. After changing it accordingly, this error message does not reappear after the next invocation of menulibre.

According to the error message, the other .desktop files could be parsed correctly. An unspecified error happende there.


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS: Xubuntu 20.04.2 LTS with kde-cli-tools 4:5.18.4.1-0ubuntu1
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.12

ADDITIONAL INFORMATION
Comment 1 Luigi Toscano 2021-08-10 08:34:20 UTC
Type=Service is a valid type for desktop file (which are also used for something else that menu entries), and you shouldn't change the type, or some features will be broken:

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html#recognized-keys
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html#kde-items

menulibre should support those values and ignore the files, this is not a bug in the desktop files.
Comment 2 Luigi Toscano 2021-08-10 08:58:21 UTC
On the other hand, the okular-mobile files are Type=Application. Uhm. I guess this is partially a duplicate of bug 439510 (the okular mobile desktop file message) and a menulibre bug (the kdeconnect desktop file).

*** This bug has been marked as a duplicate of bug 439510 ***