Bug 459156

Summary: Can't exclusively target symlinks in dolphin plugin
Product: [Applications] dolphin Reporter: Schlaefer <openmail+kde>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: dolphin-bugs-null
Priority: NOR    
Version First Reported In: 22.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Schlaefer 2022-09-15 12:42:21 UTC
SUMMARY
It's not possible to exclusively target symlinks in a dolphin plugin.


STEPS TO REPRODUCE
1. Create new plugin e.g. ~/.local/share/kservices5/ServiceMenus/test.desktop

###
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/symlink
Actions=tgtSymlink
X-KDE-Priority=TopLevel

[Desktop Action tgtSymlink]
TryExec=konsole
Exec=konsole
Icon=utilities-terminal
Name=Test Symlink
Comment=Test Symlink
###

Notice the explicit use of MimeType=inode/symlink

OBSERVED RESULT

Right clicking a symlink does not show the "Test Symlink" entry in the context menu.

EXPECTED RESULT

Right clicking a symlink of a directory or file should show "Test Symlink" in the context menu.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6