backintime
backintime copied to clipboard
[Budgie, Cinnamon] 'Shutdown after snapshot' only opens shutdown dialog
Backintime version: 1.1.20, source: AUR, Distro: Manjaro Budgie.
I have this weird issue where selecting "Shutdown after backup" basically calls the shutdown dialogue box (the one you get when you go to applications menu and hit shutdown). This leads to a situation where the system actually does not shutdown, since the menu is awaiting user input. The only DE to my knowledge that have defaults are MATE and possibly KDE that causes it to shutdown. I had tried it on Budgie and all it does is show me "Do you want to shutdown?" dialogue box and it never shutsdown since the user has to press "OK" to proceed.
Hmm. Back in the days when I implemented that feature the only DE which didn't has a countdown and shutdown automatically after running out of time was Unity (see this bugreport). All other DE's worked fine.
@Germar Budgie is relatively new and it has the same issue. I believe XFCE and LXDE also do not have defaults? (Not sure about the latter two since I have sparsely used them).
I have read through the report, seems like you had a couple of ideas I was going to suggest, including using shutdown or reboot.
I have not used Unity, and I am not sure if they ever got around fixing it (not that it matters since it is getting deprecated anyway). Alternatively, this issue can be reported to budgie developers and request them to have a timeout. What do you think?
Fixing it in Budgie would be the best for sure! The Unity folks rescheduled a fix quite some time so I made a workaround for Unity by calling PowerOff from org.freedesktop.login1.Manager.
XFCE did work in the past. Not sure if it still does as I can't test each and every DE every time
@Germar I have opened an issue, hopefully the Budgie developers will implement it.
I have the same problem on Linux Mint 19 with Cinnamon desktop.
I've tested three of the mentioned Desktop Environments on Manjaro, and found the following:
- XFCE doesn't suffer from this bug.
- This bug happens with Budgie.
- This bug happens with Cinnamon.
For Budige, @stpr-dev opened an upstream bug: https://github.com/solus-project/budgie-desktop/issues/993, but it hasn't been picked up.
For Cinnamon, I'm not aware of any upstream Issues.
In principle, these problems can be worked around by modifying the system calls, as @Germar has commented:
The Unity folks rescheduled a fix quite some time so I made a workaround for Unity by calling
PowerOfffromorg.freedesktop.login1.Manager.
So, if anyone wants to tackle this bug for Budgie or Cinnamon, those calls are probably the thing worth fiddling with, and they are to be found at this place in the code: https://github.com/bit-team/backintime/blob/46972353a49dee87017eba0b303c70501b355e25/common/tools.py#L1524-L1529