Bug 435452

Summary: Programs KIO don't work as excepted (unable to ran program)
Product: [Frameworks and Libraries] frameworks-kio Reporter: Lach Sławomir <slawek>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: fabian, kdelibs-bugs-null, kio-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.80.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lach Sławomir 2021-04-07 08:37:28 UTC
SUMMARY
KIO programs: protocol was unable to start application. Instead, desktop file preview was opened.

STEPS TO REPRODUCE
1. Add icon to folder view showing desktop 
2. This icon should point to programs: Games
3. Click on this icon
4. Select category
5. Try to open some game

OBSERVED RESULT
Desktop file was opened in Kate/Kwrite

EXPECTED RESULT
Game was run

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
OpenSUSE Tumbleweed
KDE Plasma Version: 
5.21.3
KDE Frameworks Version: 
5.80.0
Qt Version:
5.15.2 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-04-07 15:34:25 UTC
Is the .desktop file for the game marked as executable?

A screen recording would help, if you can attach one.
Comment 2 Lach Sławomir 2021-04-17 13:04:12 UTC
Problem partially was resolved, I do not known why.

Currently, only empty .desktop files for non-installed software are opened as text file.

That is expected behavior, because empty files are normal files and KIO is not related only for .desktop file. It is also fit to use with FUSE.

You can see movie here: https://youtu.be/UqPWqGixQws 

I think real problem was #! interpreter pointer at beginning. Currently, GNOME or KDE uses it to point this file should been opened with xdg-open or something. I think I was trying to open file with/without this line at beginning. I will do more test.
Comment 3 Lach Sławomir 2021-04-17 13:06:29 UTC
I must open another bug report about opening web pages from KMail/Akregator. If web page have different extension than .html (.php for example), browser such like Firefox will not open it, but ask to download. I will fill other bug report for this problem in future.
Comment 4 Bug Janitor Service 2021-05-02 04:33:31 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 5 Bug Janitor Service 2021-05-17 04:33:36 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!