fix: inhibit only sleep and idle not shutdown
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user