[dolphin] [Bug 482216] New: Hiding .desktop file services from context menu does not work
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Sat Mar 2 08:59:47 GMT 2024
https://bugs.kde.org/show_bug.cgi?id=482216
Bug ID: 482216
Summary: Hiding .desktop file services from context menu does
not work
Classification: Applications
Product: dolphin
Version: 24.02.0
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: dolphin-bugs-null at kde.org
Reporter: harle-quin at gmx.at
CC: kfm-devel at kde.org
Target Milestone: ---
Created attachment 166294
--> https://bugs.kde.org/attachment.cgi?id=166294&action=edit
possible fix (kio)
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
STEPS TO REPRODUCE
1. install a service .desktop file (into ~/.local/share/kio/servicemenus/)
2. open dolphin settings -> context menu page
3. uncheck previously installed service menu entry
OBSERVED RESULT
the service entry is still present in the context menu for applicable files
EXPECTED RESULT
the service entry should not be shown in the context menu
SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
ADDITIONAL INFORMATION
The problem seems to be that Dolphin uses KServiceAction::name() to identify
the action in kservicemenurc, but in KIO KDesktopFileAction::name() is used
which does not give the same value, but KDesktopFileAction::actionsKey() would.
The attached patch fixes the problem, but I don't know what value is expected
in the excludeList. It is not set by Dolphin, but probably the actionsKey is
expected as well.
Note that you need to restart Dolphin for the context menu settings changes to
take effect.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list