In Powermanagement KCM if I supply a script under "Run Script" to be run either at the load or at the exit of the profile, it get not loaded when the specified event occurs. Reproducible: Always Steps to Reproduce: 1. kcmshell4 powerdevilprofilesconfig 2. Check "Run script" and supply a shell script in the script dialog, e.g, "/usr/local/bin/dpms-synergy.sh" 3.Wait for the time defined for some events to happen Actual Results: The script is not run when the event occurs. Running inotifywait on the script file reveals that the script is not loaded at all. Expected Results: the script should have been run. KDE 4.8.2, Kubuntu 12.04
I confirm this problem. It still occurs on KDE 4.8.3, Kubuntu 12.04
Cannot confirm on 4.9.2. When I configure an action to run when loading the profile "AC", the command is executed when I plug in my AC cable.
I don't use 4.9.2 yet, but if it is as Kai Uwe Broulik wrote, that's good. :)
There hasn't been a change to the responsible file runscript.cpp since Nov 2010 though. But judging from the code it should work. :) Maybe there were some underlying changes to loading/triggering actions.
4.9.3 here and the bug is still reproduceable. :( Anyway I have been trying to understand the meaning of "Profile" in the context of kcm powersaving, with no results. Where is the "profile" word mentioned besides the "run script" dialog? I expected that "on profile load" refers to any triggered event listed, that is "dim display", "screen energy saving", "suspend session" or "button events handling", the latter not working here but that seems to be a distribution issue.
Now I use kde 4.9.2. and the problem doesn't exist any longer for me.
No, On Profile Load means that the script gets executed when the profile is being switched to, that is you plug in or out your AC adapter or your battery goes low, or you have configured some special behavior for an activity you switched to.
So, is this fixed?