Added eval for systemd-inhibit

This commit is contained in:
2024-11-13 08:24:08 +05:00
parent d14b4d2d24
commit 3ee49f3cc1
4 changed files with 37 additions and 23 deletions

View File

@ -3318,7 +3318,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=${PW_NAME_DESKTOP_PROXY// /_}"
PW_INHIBIT_SLR="eval systemd-inhibit --mode=block --who=ru.linux_gaming.PortProton --why=\"${translations[Launched]} $PW_NAME_DESKTOP_PROXY\""
print_info "Screensaver will be inhibit"
fi
pw_other_fixes