Bug 488177

Summary: Dolphin can't open files or terminal window in sysfs directories
Product: [Applications] dolphin Reporter: Yevhen Popok <xalt7x.service>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: i.r.e.c.c.a.k.u.n+bugs.kde.org, kfm-devel
Priority: NOR Keywords: regression, usability
Version: 24.05.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Yevhen Popok 2024-06-07 19:12:03 UTC
SUMMARY
Dolphin 24.05 can't open files in sysfs directories (e.g., /sys/devices). "Open terminal here" doesn't work as well.

STEPS TO REPRODUCE
1. Go to /sys/devices/system/cpu/cpu1/ 
2. Try to open "online" file
3. Also try to select "Open Terminal Here" from right click menu

OBSERVED RESULT
After clicking on a file Dolphin shows errors "WorkingDirectory= may not be below /proc/, /sys/ or /dev/"
After trying to open terminal window, I see a similar error in output "kf.kio.gui: Failed to launch process as service: "app-org.kde.konsole@e156273d27aa4b15980cf5421e36f26c.service" "org.freedesktop.DBus.Error.InvalidArgs" "WorkingDirectory= may not be below /proc/, /sys/ or /dev/""

EXPECTED RESULT
I can launch files and new terminal windows from sysfs directories.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Kinoite Rawhide (preview of Fedora 41)
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Dolphin 24.02.2 doesn't have this issue
Comment 1 Hanabishi 2024-06-16 12:31:30 UTC
This is not a Dolphin bug. This is new systemd 256 restriction.
https://github.com/systemd/systemd/pull/31210
Comment 2 Hanabishi 2024-06-16 13:43:27 UTC
Made a report about it upstream.
https://github.com/systemd/systemd/issues/33361
Comment 3 Hanabishi 2024-07-05 21:54:08 UTC
Fixed in systemd v256.2