deragon / autopoweroff

Manage automatic poweroff and other actions (suspend / custom) when specific conditions are reunited.
GNU General Public License v2.0
52 stars 7 forks source link

Autopoweroff cancelfile filename mismatch. #12

Closed mgutt closed 3 years ago

mgutt commented 4 years ago

At the moment autopoweroff is not able to monitor my chrome remote desktop session. Because of that I open the autopoweroff GUI directly after I'm connected and choose "disabled". If I confirm it, it returns "Autopoweroff is now disabled": 2020-07-26 13_18_16

But after some minutes the VM still shutdown. So I tried to set "disabled" AND switched to the configuration tab and choosed "yes" to restart autopoweroff. 2020-07-26 13_19_26

Now the VM stays active. Shouldn't the GUI ask for restart on the "Status & Command" tab, too?

deragon commented 4 years ago

Found the bug! The GUI generates the file /var/run/autopoweroff/autopoweroff-gui.cancel, but the daemon looks for /var/run/autopoweroff/autopoweroff.cancel (not the same file). I will fix this shortly.

deragon commented 4 years ago

I do not have the time to package Autopoweroff new version with this fix. However, you can get the new code by performing a git clone on the master branch. Packaging will require more time, unfortunately.

deragon commented 3 years ago

Fixed with Autopoweroff 4.0.0.