Closed rootkea closed 3 years ago
Hello!
I'm using menulibre 2.2.1 on Ubuntu 20.04 LTS.
It seems that menulibre doesn't recognize Service as a valid Type value since it shows following parsing error:
Service
Type
Type value is invalid - currently 'Service', should be 'Application'
But as per the desktop entry spec, Service is a valid type along with other 2 types mentioned there.
Kdeconnect uses .desktop file with Type=Service.
Type=Service
Also, what about Link (type 2) and Directory (type 3)? With current implementation, Libremenu will report the parsing error for .desktop files with Type=Link or Type=Directory - both valid type values.
Link
Directory
Type=Link
Type=Directory
Looks like this is the line of code in question: https://github.com/bluesabre/menulibre/blob/c617e6bb49c2744904b4c6af3db1ad62dbdb15a0/menulibre/util.py#L647
Thanks!
Thanks for the bug report! Corrected in the above commit.
Hello!
I'm using menulibre 2.2.1 on Ubuntu 20.04 LTS.
It seems that menulibre doesn't recognize
Service
as a validType
value since it shows following parsing error:But as per the desktop entry spec,
Service
is a valid type along with other 2 types mentioned there.Kdeconnect uses .desktop file with
Type=Service
.Also, what about
Link
(type 2) andDirectory
(type 3)? With current implementation, Libremenu will report the parsing error for .desktop files withType=Link
orType=Directory
- both valid type values.Looks like this is the line of code in question: https://github.com/bluesabre/menulibre/blob/c617e6bb49c2744904b4c6af3db1ad62dbdb15a0/menulibre/util.py#L647
Thanks!