Summary: | Dolphin handles broken symlinks in an unexpected way (try to open link as file) | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Kishore Gopalakrishnan <kishore96> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | dimitri.code, dolphin-bugs-null, lassi.vaatamoinen, tagwerk19 |
Priority: | NOR | ||
Version First Reported In: | 21.12.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Error appearing on Dolphin |
Description
Kishore Gopalakrishnan
2021-12-12 08:59:29 UTC
Created attachment 177168 [details]
Error appearing on Dolphin
We are now getting an error message, both when opening in Dolphin and when opening on Desktop.
The error message is "WorkingDirectory= expects an absolute path or '~' " which is not a good message. The broken given path is an absolute path. It should instead say something like "The given path is invalid." and this message should be translated by the OS to the language of the user (not the case here).
Also, when trying to open in Dolphin, I see that KWrite try to open the file and close itself (without a window to open, it just appear and disappear in the taskbar). So there is definitely something else than the content of the error to fix.
Similar error occurs if your location is in URL format, copied using like so: 1. open right-click context menu on a file 2. Copy location: file:///home/myuser/Documents/test.txt 3. Go to another directory 4. Right-click -> Create New -> Link to file or directory -> paste file path from clipboard (file:///home/myuser/Documents/test.txt) 5. Check that link name is prefilled OK, close dialog 6. Click on created link: test.txt Observed: "WorkingDirectory= expects an absolute path or '~' " Expected: File opens in editor (or other assigned app) ADDTIONAL INFO: removing the file:// prefix from the link location fixes it. Dolphin should remove the prefix automatically, as the original file path was obtained by right-clicking and copying the path in Dolphin. Currently the behavior is 'asymmetrical'. |