fix: inhibit only sleep and idle not shutdown

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-05-29 16:26:22 +05:00
parent 1b0c6c0559
commit 4eed47196e

View File

@ -3536,7 +3536,7 @@ start_portwine () {
if command -v systemd-inhibit &>/dev/null \
&& [[ "$GAMEMODERUN" != "1" ]]
then
PW_INHIBIT_SLR="systemd-inhibit --mode=block --who=ru.linux_gaming.PortProton --why=${translations[Launched]}"
PW_INHIBIT_SLR="systemd-inhibit --mode=block --who=ru.linux_gaming.PortProton --why=${translations[Launched]} --what=idle:sleep"
print_info "Screensaver will be inhibit"
fi
pw_other_fixes