Bug 361168 - klauncher spontaneously says "Service '<.desktop file here>' is malformatted."
Summary: klauncher spontaneously says "Service '<.desktop file here>' is malformatted."
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: klauncher (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-30 03:29 UTC by Naram Qashat
Modified: 2022-11-18 05:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Naram Qashat 2016-03-30 03:29:06 UTC
While I have been unable to make this happen consistently, I have experienced this a few times already.

At seemingly random times, KDE's application launcher will stop loading some applications, but not all. For the ones it decides to refuse to load, if I try to load them from a command line through 'kioclient exec <.desktop file here>', it will bring up a message box titled "Sorry" that says "Service '<.desktop file here>' is malformatted."

I was unable to figure out how to be able to attach gdb to klauncher to determine why, but the message comes from the start_service function of KLauncher, located in kdelibs' kinit/klauncher.cpp. Because I could not debug it, I cannot fully determine if the reason is because service->isValid() is returning false or if it is because of request->arg_list.count() being 0, but those are only two places where the above message could happen.

The .desktop files it does this on are ones that worked prior to KDE deciding to start bringing up the message. Even desktop-file-validate from desktop-file-utilities will usually give no errors from the .desktop file that klauncher is claiming is malformatted. So far, the only ways I have found around this problem were either a full reboot or even just running kdeinit4 to force it to get restarted.

Reproducible: Sometimes

Steps to Reproduce:
Unfortunately, I do not have a reproduction path. The only thing I was doing was going through every application in my application launcher and then spontaneously it started to fail to load some applications, at which point trying to execute the associated .desktop file from a command line with 'kioclient exec' gives the message from klauncher.

Actual Results:  
Spontaneously, klauncher will stop loading some applications and running the associated .desktop file with 'kioclient exec' from a command line gives the message from klauncher.

Expected Results:  
Normally, I would expect there to never be any problems with loading an application from the application launcher unless the actual application isn't loading due to a problem.

I am using KDE 4.14.3 (that version was not in the above version selector) on FreeBSD 10.3/amd64. All components of KDE were compiled from the FreeBSD ports tree using the system's version of clang, version 3.4.1.
Comment 1 Justin Zobel 2022-10-19 22:11:09 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-03 05:08:00 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-11-18 05:18:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!