Bug 513669

Summary: Global Theme configuration change in plasmoidsetupscripts for org.kde.plasma.battery no longer changes percentage indicator
Product: [Plasma] plasmashell Reporter: Paul McAuley <kde>
Component: ScriptingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: normal CC: kdedev, nate, plasma-bugs-null
Priority: NOR Keywords: regression
Version First Reported In: 6.5.4   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Paul McAuley 2025-12-21 18:58:56 UTC
Hello,

I made a global look-and-feel theme with a file called org.kde.plasma.battery.js the contents/plasmoidsetupscripts/ directory of my theme. This file is designed to enable the percentage indicator on the battery applet in the system tray. The contents of the file are as follows:

applet.currentConfigGroup = new Array("General");
applet.writeConfig("showPercentage", true);
applet.reloadConfig();

This works perfectly in Plasma 6.3 when changing global themes, however, in Plasma 6.5.4 it no longer functions.
Comment 1 Nate Graham 2025-12-22 21:01:32 UTC
That looks like it should work. Are you 100% sure it's targeting the right widget?
Comment 2 TraceyC 2025-12-29 22:09:52 UTC
Changing status, as we're waiting on information from Paul