| Summary: | kde-open fails to open relative paths outside of the current working directory's children | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | thibaulltt <thibaulltt> |
| Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | cwo.kde, fanzhuyifan, kdelibs-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| See Also: | https://bugreports.qt.io/browse/QTBUG-127711 | ||
| Latest Commit: | https://invent.kde.org/frameworks/kio/-/commit/851dbcab4e59bac477346160a04faa1861b8ad2a | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
thibaulltt
2024-07-29 09:19:33 UTC
In the steps to reproduce section, on item 3 it should be noted any path will error out if outside of the child of the CWD. No matter if the thing you're trying to open is a directory or a file. Works fine here using Tuxedo OS and current git master. This looks like a permission problem involving dbus. Are you using flatpaks or snaps of any of the involved applications? Is maybe SELinux involved? I am using a few Flatpak-installed applications, but this problem happens no matter where I instantiate the command from. It happens when using it from WezTerm (installed via Flatpak) and Konsole (installed by-default by the KDE spin of Fedora, not through Flatpak). As far as I'm aware, I haven't made any modifications to my DBus setup, other then what Fedora provides as default. For SELinux, it seems to be enabled on my machine yes (`sestatus` prints 'Current mode: enforcing') but as explained in my original post, it didn't seem to happen a few weeks ago. I can reproduce this on base Fedora in a VM, just installation and full upgrades, no other changes. It doesn't happen on Tuxedo OS with the same version. It might be something Fedora specific, or a kde bug that only appears with newer system packages than what Tuxedo provides. You may want to report a bug on Fedora's bug tacker just in case. When opening relative urls from the parent, I get the error ``` kf.kio.gui: Failed to launch process as service: "app-org.kde.dolphin@5bc014e857b84d0c97016e4c0c9bca8d.service" "org.freedesktop.DBus.Error.InvalidArgs" "WorkingDirectory= expects a normalized path or '~'" ``` I think this is happening due to the recent change in systemd: https://github.com/systemd/systemd/commit/14631951cea807de2d482a430841c604c2040718 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1679 Git commit 851dbcab4e59bac477346160a04faa1861b8ad2a by Yifan Zhu. Committed on 12/08/2024 at 13:36. Pushed by fanzhuyifan into branch 'master'. gui/kprocessrunner: normalize working directory systemd requires working directory to be normalized since https://github.com/systemd/systemd/commit/14631951cea807de2d482a430841c604c2040718. M +2 -1 src/gui/kprocessrunner.cpp https://invent.kde.org/frameworks/kio/-/commit/851dbcab4e59bac477346160a04faa1861b8ad2a |