Bug 459156 - Can't exclusively target symlinks in dolphin plugin
Summary: Can't exclusively target symlinks in dolphin plugin
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 12:42 UTC by Schlaefer
Modified: 2022-09-15 12:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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