File poweroff.patch of Package gamescope-session-plus

diff --git a/usr/share/gamescope-session-plus/gamescope-session-plus b/usr/share/gamescope-session-plus/gamescope-session-plus
index 6ac8d89..437f8e7 100755
--- a/usr/share/gamescope-session-plus/gamescope-session-plus
+++ b/usr/share/gamescope-session-plus/gamescope-session-plus
@@ -431,13 +431,13 @@ if [[ -e "$REBOOT_SENTINEL" ]]; then
 	rm -f "$REBOOT_SENTINEL"
 	# rearm short session tracker
 	rm "$short_session_tracker_file"
-	reboot
+	systemctl reboot --ignore-inhibitors
 fi
 if [[ -e "$SHUTDOWN_SENTINEL" ]]; then
 	rm -f "$SHUTDOWN_SENTINEL"
 	# rearm short session tracker
 	rm "$short_session_tracker_file"
-	poweroff
+	systemctl poweroff --ignore-inhibitors
 fi
 
 # Wait for gamescope or the sleep to finish for timeout purposes
openSUSE Build Service is sponsored by