Bug 456035

Summary: Symbolic links are not launched with associated file types.
Product: [Applications] dolphin Reporter: AvidSeeker <avidseeker7>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kfm-devel, p.r.worrall
Priority: NOR    
Version: 22.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description AvidSeeker 2022-06-27 13:51:34 UTC
SUMMARY
Symbolic links are not launched with associated file types.

STEPS TO REPRODUCE
0. General files are accessed by default with Kate (like this: https://i.imgur.com/uBW4eFE.png).
1. Associate .md with KWrite.
2. Create a symbolic link to mymarkdown.md
3. Launch the symbolic link.

OBSERVED RESULT
File is launched with Kate.

EXPECTED RESULT
File is launched with KWrite.

SOFTWARE/OS VERSIONS:
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Comment 1 Paul Worrall 2022-06-28 08:07:12 UTC
If you hover your mouse over the symbolic link in Dolphin, what file type does it say in the status bar? 

For me, the link is only identified as a markdown file (and so opened by KWrite) if the link name ends with ".md"; without that it's identified as a link to a plain text document which is then opened by whatever app is associated with plain text documents. Other endings cause the link to open the app associated with that (e.g. .odt launches libreoffice).  This could be the desired behaviour.
Comment 2 AvidSeeker 2022-06-28 14:34:28 UTC
> If you hover your mouse over the symbolic link in Dolphin, what file type does it say in the status bar? 
plain text document, Link to...

The link is without an extension. It's more convenient to have it like that for quicker access by Krunner.
Comment 3 Paul Worrall 2022-06-28 18:28:57 UTC
Setting status to confirmed.  (Arguably) files opened via a symlink should use the application associated with the target of the link.