Bug 515694 - Undefined Desktop Entry actions show as empty context menu entries
Summary: Undefined Desktop Entry actions show as empty context menu entries
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-07 20:08 UTC by Albert
Modified: 2026-02-07 20:08 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert 2026-02-07 20:08:17 UTC
SUMMARY
Empty context menu entry appears when Desktop Entry defines an action in `Actions` without a corresponding action group definition
STEPS TO REPRODUCE

1. Create a .desktop file with an action listed in Actions (e.g., Actions=Extract;)
2. Omit the [Desktop Action Extract] section
3. Right-click the application icon to open the context menu

OBSERVED RESULT

An empty field appears in the context menu. Clicking it displays an "unauthorized for that action" popup

EXPECTED RESULT
Either:

The undefined action should not appear in the context menu (perhaps with warning)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2
ADDITIONAL INFORMATION
This appears to be a validation issue where the Desktop Entry parser doesn't verify that action groups exist for all actions listed in the Actions key.