Bug 412305

Summary: Dolphin / xdg-open no longer launches .desktop programs
Product: [Applications] dolphin Reporter: Michael <kde>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde, kfm-devel, nate, santhoshsundaram9650
Priority: NOR    
Version: 19.08.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael 2019-09-25 04:59:03 UTC
SUMMARY

Dolphin (or is it xdg-open?) has a regression where it no longer launches programs when directly executing a .desktop file. 

This is notably visible when a privacy-minded user downloads and runs the Tor Browser via its "start-tor-browser.desktop" icon.


STEPS TO REPRODUCE

1. Go to https://www.torproject.org/download/ and download the Tor Browser for Linux.
2. Extract the .tar.xz file to your Downloads folder
3. In Dolphin, open the Downloads folder, then enter the "tor-browser_??-??" folder.
4. Click-to-run the "start-tor-browser.desktop" file.

5. Alternatively, from the command line, type:

   $ xdg-open start-tor-browser.desktop


OBSERVED RESULT

The "start-tor-browser.desktop" file opens in the default text editor. This will confuse a new KDE user, and annoy experienced KDE users.

This file has its "Is executable" permission set so this shouldn't be an issue. 

The xdg-open command has the same effect, so maybe the underlying issue is with xdg instead?


EXPECTED RESULT

"start-tor-browser.desktop" should execute its "Exec" line to configure and run the Tor browser.


SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.16
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.3


ADDITIONAL INFORMATION

Since KDE has an explicit goal of user privacy, this bug should be a high priority.
Comment 1 Kai Uwe Broulik 2019-09-26 06:44:04 UTC
Should be fixed by https://cgit.kde.org/kio.git/commit/?id=fdb10a52bfe84e585258dbd6a80a0fadb35e7d79
There's been a followup 5.62.1 release for this.