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-n...@kde.org
          Reporter: harle-q...@gmx.at
                CC: kfm-de...@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 watching all bug changes.

Reply via email to