I added a action that can be called to shutdown the computer.
shut_system_down_prompt() method, which invokes xfce4-session-logout and if that fails, fails back to 'systemctl poweroff'
shut_system_down_now() which invokes 'xfce4-session-logout -h' and if that fails, fails back to 'systemctl poweroff'
Made a dialog 'shutdown_dialog.ui' that has a cancel and shutdown button to confirm the shutdown. stay_on_top=True, frameless=True
Please let me know if this is the correct approach to this.
My first pull request for this project. Be nice.
I added a action that can be called to shutdown the computer. shut_system_down_prompt() method, which invokes xfce4-session-logout and if that fails, fails back to 'systemctl poweroff' shut_system_down_now() which invokes 'xfce4-session-logout -h' and if that fails, fails back to 'systemctl poweroff'
Made a dialog 'shutdown_dialog.ui' that has a cancel and shutdown button to confirm the shutdown. stay_on_top=True, frameless=True
Please let me know if this is the correct approach to this.