https://bugs.kde.org/show_bug.cgi?id=478582

Niccolò Venerandi <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |NOT A BUG

--- Comment #1 from Niccolò Venerandi <[email protected]> ---
This is already possible with the scripting API: ConfigFile() can open Plasma's
own config file, and nested groups are made by passing a parent ConfigFile
instead of a file name. For example:

var plugins = ConfigFile('plasma-org.kde.plasma.desktop-appletsrc',
'ActionPlugins');
var desktop = ConfigFile(plugins, '0');
var rightButton = ConfigFile(desktop, 'RightButton;NoModifier');
rightButton.writeEntry('_logout', true);
rightButton.writeEntry('_lock_screen', true);

This writes exactly [ActionPlugins][0][RightButton;NoModifier], and the desktop
context menu shows those actions the next time Plasma starts.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to