Bug 444443 - Ability to add menu options to Plasma Desktop context menu
Summary: Ability to add menu options to Plasma Desktop context menu
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-26 18:30 UTC by Shawn Starr
Modified: 2025-10-21 09:48 UTC (History)
3 users (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 Shawn Starr 2021-10-26 18:30:49 UTC
SUMMARY

It would be good to allow programs to add context menu hooks to the Plasma Desktop menu, similar to Microsoft Windows shell supporting menu context additions.


STEPS TO REPRODUCE
1. Left Plasma Desktop to open Context menu -> Configure Desktop & Wallpaper , no option for extending the context menu.

OBSERVED RESULT
No option to edit Plasma Desktop context menu

EXPECTED RESULT
Ability to add shortcuts to context menu, name the context menu and the action when clicking it should do.

If The Plasma Desktop Folder View could support some sort of extensions directory  it could load.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 36
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.15.0-0.rc3.25.fc36.x86_64 (64-bit)
Graphics Platform: X11
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 62.8 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3090/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 Shawn Starr 2021-10-26 18:41:36 UTC
Something like Folder View could do is read some $HOME/.config/plasmamenus/*.kdelnk or something
Comment 2 Nate Graham 2021-10-28 16:03:51 UTC
The context menu that appears when you right-click a file or folder already respects the extensible set of plugins configurable in Dolphin. Is that what you were looking for?
Comment 3 Shawn Starr 2021-10-28 16:07:21 UTC
Plasma Desktop Folder View v3.0 plugin, or does this respect Dolphin's view of that context menu(?)
Comment 4 Nate Graham 2021-10-28 16:08:06 UTC
It does. Right-click on a file or folder and see for yourself. :)
Comment 5 Shawn Starr 2021-10-28 16:08:37 UTC
Not within Dolphin which has its own context menus, but the root desktop itself that Plasma shell owns via Desktop Folder View plugin I guess
Comment 6 Nate Graham 2021-10-28 16:09:39 UTC
That is configurable, but you can't add arbitrary content to it, yeah.
Comment 7 Niccolò Venerandi 2025-10-21 09:48:59 UTC
I'm not sure this is a good idea to implement; we don't offer to the user the ability to create custom context menu entries anywhere (though it is possible to customize which options to show in the desktop context menu, in the "mouse actions" section of settings) and I don't see why it would be necessary here. However I'm not sure I fully understood what's your expected usecase here, so I'm open to be convinced otherwise.