Bug 456035 - Symbolic links are not launched with associated file types.
Summary: Symbolic links are not launched with associated file types.
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.04.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-27 13:51 UTC by AvidSeeker
Modified: 2022-06-28 18:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.