Bug 508938

Summary: Konqueror cannot open .desktop files/apps, instead asks to download or preview them
Product: [Applications] konqueror Reporter: Dorin-Andrei Felea <megadorin4>
Component: generalAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: stefano.crocco
Priority: NOR    
Version First Reported In: 25.08.0   
Target Milestone: ---   
Platform: CachyOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Konqueror asking what should I do with the KDevelop .desktop file

Description Dorin-Andrei Felea 2025-08-30 14:17:26 UTC
SUMMARY
Konqueror cannot open .desktop files/apps, instead asks to download or preview them

STEPS TO REPRODUCE
1. Open Konqueror, enable Sidebar, open the Services tab and select any sub-category under "/"
2. Double-click an application, such as a ".desktop" file.
3. See the issue.

OBSERVED RESULT
Konqueror asks whether you want to save as, open with another app or preview in another app.

EXPECTED RESULT
Konqueror executing the application. (or asking whether you want to do that)

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.3-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7500T CPU @ 2.70GHz
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: Intel® HD Graphics 630
Comment 1 Dorin-Andrei Felea 2025-08-30 14:19:46 UTC
Created attachment 184586 [details]
Konqueror asking what should I do with the KDevelop .desktop file
Comment 2 Stefano Crocco 2025-08-31 09:14:25 UTC
This is caused in part by the fact that Konqueror treats "applications:/" URLs as remote URLs and so, for security reasons, it doesn't allow to execute them. When trying to fix this, however, I noticed that, at least on my system, Dolphin too doesn't execute those files but displays them in a text editor (Kate, in my case). Could you please check whether the same happens on your system? Try launching Dolphin, then enter applications:/ in the address bar, press enter and navigate to a single application and double click it: does it launch the application or does it open the .desktop file in a text editor?
Comment 3 Dorin-Andrei Felea 2025-08-31 16:24:22 UTC
Hello,

When I launch .desktop files, Dolphin asks whether I want to open it in Kate/KWrite/some other text editor or if I want to launch it.
Launching .desktop files from applications:/, however, do the same thing as they do on Konqueror.
Comment 4 Stefano Crocco 2025-08-31 17:16:04 UTC
(In reply to Dorin-Andrei Felea from comment #3)
> Hello,
> 
> When I launch .desktop files, Dolphin asks whether I want to open it in
> Kate/KWrite/some other text editor or if I want to launch it.
> Launching .desktop files from applications:/, however, do the same thing as
> they do on Konqueror.

It seems that either this is the intended behavior (maybe for security reasons) or it's a bug which also affects Dolphin, most likely because both Dolphin and Konqueror use the same way to launch the .desktop file. I'll try asking whether this is indeed the intended behavior.
Comment 5 Stefano Crocco 2025-09-07 15:41:34 UTC
This should be fixed by a change in Plasma Workspace (https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5805) and a change in Konqueror (https://invent.kde.org/network/konqueror/-/merge_requests/442). Note that you'll have to wait for both changes to be released for the bug to be fixed. The change in Konqueror will be in version 25.12.0, to be released in December. I don't know when the changes in Plasma Workspace will be released.