Bug 480725

Summary: xdg-open does not launch applications
Product: [Plasma] xdg-desktop-portal-kde Reporter: Lukas Polacek <lukas>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, jgrulich, nate
Priority: NOR Keywords: qt6
Version: 5.93.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lukas Polacek 2024-02-02 10:03:09 UTC
SUMMARY
xdg-open does not open any application.

STEPS TO REPRODUCE
1. Use xdg-open, e.g. `xdg-open document.pdf`

OBSERVED RESULT
It silently exits without opening the associated application (in this case okular). Opening html files, images, videos, etc., results in the same behavior.
The returned exit code is 0.

EXPECTED RESULT
The associated application (e.g. okular) should open.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Lukas Polacek 2024-02-02 10:10:59 UTC
It has been fixed in new xdg-open, upgrading xdg-utils to 1.2.0 fixed this.
Relevant line of code: https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-open.in#n157
Comment 2 Nate Graham 2024-02-02 14:19:04 UTC
*** This bug has been marked as a duplicate of bug 472300 ***