Bug 417990 - Widgets that launch .desktop apps now open them in a text editor
Summary: Widgets that launch .desktop apps now open them in a text editor
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-21 12:38 UTC by David
Modified: 2020-02-23 07:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2020-02-21 12:38:28 UTC
After updating to plasma 5.17.5, when I click widgets (plasmoids?) that execute some .desktop file, now instead of executing the command it points to, it opens the actual .desktop file in a text editor.

Example with this widget:
https://store.kde.org/p/998908/
https://github.com/kotelnik/plasma-applet-resources-monitor

In plasma <= 5.14, if I put that widget somewhere (e.g. in the taskbar) and click it, it would launch ksysguard, but now it just opens the .desktop file in my default text editor.

Steps to reproduce:
* Have some widget that would launch a .desktop file when clicked.
* Click said widget.

Expected behavior: should launch the application from the .desktop file.

Actual behavior: opens the .desktop file in a text editor.
Comment 1 David 2020-02-21 12:41:17 UTC
BTW, executing 'xdg-open the_file.desktop' also opens it in a text editor.
Comment 2 Nate Graham 2020-02-22 03:26:38 UTC
Does it happen with any built-in widgets? How about if you drag an app from the launcher menu to the desktop and double-click on it? Does that also fail?
Comment 3 David 2020-02-22 06:04:15 UTC
(In reply to Nate Graham from comment #2)
> Does it happen with any built-in widgets? How about if you drag an app from
> the launcher menu to the desktop and double-click on it? Does that also fail?

If I copy a .desktop file and put it under ~/Desktop, it will launch the app when I click it.
Comment 4 Nate Graham 2020-02-22 16:45:52 UTC
Hmm, sounds like an issue with those widgets then. Can you report this to their developers? Thanks!
Comment 5 David 2020-02-22 17:16:21 UTC
(In reply to Nate Graham from comment #4)
> Hmm, sounds like an issue with those widgets then. Can you report this to
> their developers? Thanks!

But I didn't update the widget, and it has been working since the earlier plasma5 releases. Also I think the gnome and xfce equivalents of xdg-open still launch .desktop files.
Comment 6 David 2020-02-23 07:43:21 UTC
FYI, found a fork of the widget that solved the issue, and from the commit that did it, looks like it was something with KIO:
https://github.com/XutaxKamay/plasma-applet-resources-monitor/commit/fe5332589cb839327ce89f03645a93934c0ab2c6