Bug 340342 - powermanager reparseConfiguration not working from command line
Summary: powermanager reparseConfiguration not working from command line
Status: RESOLVED NOT A BUG
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-25 21:41 UTC by Francesco Florian
Modified: 2015-01-25 22:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Florian 2014-10-25 21:41:28 UTC
cannot reparse powermanagement configuration files from command line,
while changing settings using the graphic tool works fine

Reproducible: Always

Steps to Reproduce:
1. change the content in
~/.kde/share/config/powermanagementprofilesrc
(i removed the 

[AC][DPMSControl]
idleTime=60

section)
2. run:
qdbus org.kde.kded /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.reparseConfiguration
3. observe the canges have not been applied (in my case the screen blanks as usual)
4. open the "battery monitor settings" dialog, in the "energy saving" tab.
5. it loads the modified settings from the file and if clicking ok (not cancel; apply is unavaiable because nothing has been modified) the changes are correctly applied

Actual Results:  
command
qdbus org.kde.kded /org/kde/Solid/PowerManagement \ org.kde.Solid.PowerManagement.reparseConfiguration

doesn't work from command line

Expected Results:  
powermanager should load the new settings

kate reports: platform version 4.14.2
but i can't find it in the "version" menu above
Comment 1 Kai Uwe Broulik 2014-12-27 12:47:03 UTC
Can you try the following command?
qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.reparseConfiguration
Comment 2 Francesco Florian 2015-01-11 20:30:17 UTC
same thing; it doesn't work
Comment 3 Kai Uwe Broulik 2015-01-11 20:58:25 UTC
From what I can see in the code reparseConfiguration only reloads the config file but doesn't actually reload the powermanagement profiles.
refreshStatus is probably what you want, it reloads the profile and its actions.