https://bugs.kde.org/show_bug.cgi?id=478582
Bug ID: 478582 Summary: Plasma 6 Folder Applet - Ability to set Contextual Menu Plugins through API scripting Classification: Plasma Product: plasmashell Version: 5.90.0 Platform: Arch Linux OS: Linux Status: REPORTED Severity: wishlist Priority: NOR Component: Folder Assignee: plasma-b...@kde.org Reporter: frankeba...@gmail.com CC: h...@kde.org Target Milestone: 1.0 Created attachment 164212 --> https://bugs.kde.org/attachment.cgi?id=164212&action=edit Contextual Menu Plugins SUMMARY *** We use Plasma API Scripting for our distro’s Global Theme and setting specific Contextual Menu Plugins allows more flexibility for the UX and better overall experience of the Theme. Mainly the plugin LEAVE, accessible when right-clicking the mouse anywhere on the desktop wallpaper to call the context menu (mouse actions/right-button). Currently Plasma allows to access the "Leave" actions through the Application Launcher. This requires to drag the mouse to the App Launcher and click on the desired action. It's a 3-click operation, 4 if you want to Lock, Logout or Switch User. I am proposing a faster alternative (without removing the default one) that doesn't take user space and that is a 3-click-no-mouse-draggin operation for all actions. This is possible by including the "Leave" action when right-clicking on the desktop. I believe this makes the user's workflow faster and smoother. Same goes with the action "Lock Screen", which would then be accessible faster. I think it would be interesting to have Plasma default to these, but if it doesn't, at least to have the ability to set those actions through API would help increase the UX for the Global Themes in which it fits well to have these features included. I have read many documentations like https://develop.kde.org/docs/plasma/scripting/api/#applets-containments-and-widgets but no matter what I try to code in layout.js it does not apply that setting. I cannot seem to write in the group [ActionPlugins][0][RightButton;NoModifier]. STEPS TO REPRODUCE 1. Use code in script following documentation above 2. Apply the Theme OBSERVED RESULT In ~/.config/plasma-org.kde.plasma.desktop-appletsrc the config is written in a different group/subgroup than required. The closest I could get is: === [Containments][2][ActionPlugins] _logout=true === EXPECTED RESULT It should look like this, in the below groups, in ~/.config/plasma-org.kde.plasma.desktop-appletsrc: === [ActionPlugins][0][RightButton;NoModifier] _add panel=true _context=true _display_settings=true _lock_screen=false _logout=true _open_terminal=false _run_command=false _sep1=true _sep2=true _sep3=true _wallpaper=true add widgets=true configure=true configure shortcuts=false edit mode=true manage activities=true remove=true === SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch KDE Plasma Version: 5.90.90 KDE Frameworks Version: 5.247 Qt Version: 6.6.1 -- You are receiving this mail because: You are watching all bug changes.