Bug 443454 - KIO does not launch Application type .desktop/.kdelnk
Summary: KIO does not launch Application type .desktop/.kdelnk
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.86.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-07 23:56 UTC by ryu.ketsueki
Modified: 2025-07-27 14:51 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
File I created from Brave that is a .desktop (287 bytes, application/x-desktop)
2021-10-08 16:50 UTC, ryu.ketsueki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ryu.ketsueki 2021-10-07 23:56:42 UTC
SUMMARY
This has been happening for a while and recently it got broken on everywhere I could test with Folder View. Plasma prompts to open the .desktop and .kdelnk set as type Application as files instead of launching the program, usually opening Kate. If no default program is set, it prompts the user to select a program to open the file with. This issue happens with existing .desktop and .kdelnk files as well as the ones created using Plasma's own daemon to create a Link to Application.

But again, that only happens with Application type. The Link type launches Dolphin just fine, as it is expected to

STEPS TO REPRODUCE
1. Just try double clicking any .desktop or .kdelnk file from a Folder View

OBSERVED RESULT
Plasma either opens the file to be edited on the default plain text editor or prompts the user to open on another application

EXPECTED RESULT
The desired application to be launched

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20211005
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.6-2-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-7020U CPU @ 2.30GHz
Memory: 11.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620

ADDITIONAL INFORMATION
Build coming from KDE Unstable Repos for openSUSE Tumbleweed.
Comment 1 Nate Graham 2021-10-08 15:31:55 UTC
Only in Folder View? It doesn't happen in Dolphin or one of the file dialogs?
Comment 2 Nate Graham 2021-10-08 15:32:11 UTC
Also can you attach a sample file that is affected for you so we can test with the same data?
Comment 3 ryu.ketsueki 2021-10-08 16:50:10 UTC
Created attachment 142258 [details]
File I created from Brave that is a .desktop

Here is a file created by Brave as a shortcut to Netflix but turns out that happens with every Application Type as well, so it also happened with the ones coming with the system, like Dolphin. The way I tested them was by double clicking them on the applications list kioslave, the applications:/
Comment 4 ryu.ketsueki 2021-10-08 16:51:24 UTC
(In reply to Nate Graham from comment #1)
> Only in Folder View? It doesn't happen in Dolphin or one of the file dialogs?

I tested here by trying to open several of them on the applications:/ kioslave (I think I got that name right) then on the /usr/share/applications but both had the same result as trying to open from the Folder View on the shell
Comment 5 Nate Graham 2021-10-08 16:53:15 UTC
I mean, if you open Dolphin and navigate to the location of the file in question and open it, does the same thing happen that happens when you open it in Folder View?
Comment 6 ryu.ketsueki 2021-10-08 18:48:36 UTC
(In reply to Nate Graham from comment #5)
> I mean, if you open Dolphin and navigate to the location of the file in
> question and open it, does the same thing happen that happens when you open
> it in Folder View?

It does. I also tested with existing ones that come with the system and the same thing happens.
Comment 7 Nate Graham 2021-10-08 19:31:53 UTC
OK thanks. Moving to KIO, then.
Comment 8 Brendon Lucas 2025-07-27 14:48:59 UTC
I've just encountered this today.  And it was working as intended for me, for sometime, until i changed an applications icon today.  That seemingly broke it. Now kioslave applications:/ & programs:/ just open the .desktop file with kate.

More concerning is the change in behaviour is systemwide, all users, new & existing.  No files changed within user /home/ during period of icon change are relevant, mime-type of ḋesktop files is still seemingly application/x-desktop
Comment 9 Brendon Lucas 2025-07-27 14:51:28 UTC
KInfo:

Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.14.0-24-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5500
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 7600
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B550M DS3H
System Version: -CF