added NAME and IMG to systemd-inhibit
This commit is contained in:
parent
2d40a16d13
commit
3364792668
@ -2968,8 +2968,10 @@ start_portwine () {
|
|||||||
export PW_GAMEMODERUN_SLR=""
|
export PW_GAMEMODERUN_SLR=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v systemd-inhibit &>/dev/null && [[ "$GAMEMODERUN" != "1" ]] ; then
|
if command -v systemd-inhibit &>/dev/null \
|
||||||
PW_INHIBIT_SLR='systemd-inhibit --mode=block --who="PortProton" --why="Running"'
|
&& [[ "$GAMEMODERUN" != "1" ]]
|
||||||
|
then
|
||||||
|
PW_INHIBIT_SLR="systemd-inhibit --mode=block --who=ru.linux_gaming.PortProton --why=${PW_NAME_DESKTOP_PROXY// /_}"
|
||||||
print_info "Screensaver will be inhibit"
|
print_info "Screensaver will be inhibit"
|
||||||
fi
|
fi
|
||||||
pw_other_fixes
|
pw_other_fixes
|
||||||
@ -3792,7 +3794,7 @@ pw_run () {
|
|||||||
print_info "Log from RUNTIME and WINE:"
|
print_info "Log from RUNTIME and WINE:"
|
||||||
${PW_RUN_GAMESCOPE} \
|
${PW_RUN_GAMESCOPE} \
|
||||||
${PW_POWERPROFILECTL_SLR} \
|
${PW_POWERPROFILECTL_SLR} \
|
||||||
${PW_INHIBIT_SLR} \
|
${PW_INHIBIT_SLR}\
|
||||||
${pw_runtime} \
|
${pw_runtime} \
|
||||||
LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" \
|
LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" \
|
||||||
LD_PRELOAD="${PW_LD_PRELOAD}" \
|
LD_PRELOAD="${PW_LD_PRELOAD}" \
|
||||||
@ -3811,7 +3813,7 @@ pw_run () {
|
|||||||
echo "Log WINE:" > "${PW_LOG_TO_FILE}"
|
echo "Log WINE:" > "${PW_LOG_TO_FILE}"
|
||||||
${PW_RUN_GAMESCOPE} \
|
${PW_RUN_GAMESCOPE} \
|
||||||
${PW_POWERPROFILECTL_SLR} \
|
${PW_POWERPROFILECTL_SLR} \
|
||||||
${PW_INHIBIT_SLR} \
|
${PW_INHIBIT_SLR}\
|
||||||
${pw_runtime} \
|
${pw_runtime} \
|
||||||
LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" \
|
LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" \
|
||||||
LD_PRELOAD="${PW_LD_PRELOAD}" \
|
LD_PRELOAD="${PW_LD_PRELOAD}" \
|
||||||
@ -3847,7 +3849,7 @@ pw_run () {
|
|||||||
${PW_POWERPROFILECTL_SLR} \
|
${PW_POWERPROFILECTL_SLR} \
|
||||||
${PW_MANGOHUD_SLR} \
|
${PW_MANGOHUD_SLR} \
|
||||||
${PW_DISPLAY} \
|
${PW_DISPLAY} \
|
||||||
${PW_INHIBIT_SLR} \
|
${PW_INHIBIT_SLR}\
|
||||||
"${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[@]} &>>"${PW_LOG_TO_FILE}"
|
"${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[@]} &>>"${PW_LOG_TO_FILE}"
|
||||||
wait_wineserver
|
wait_wineserver
|
||||||
else
|
else
|
||||||
@ -3866,7 +3868,7 @@ pw_run () {
|
|||||||
${PW_POWERPROFILECTL_SLR} \
|
${PW_POWERPROFILECTL_SLR} \
|
||||||
${PW_MANGOHUD_SLR} \
|
${PW_MANGOHUD_SLR} \
|
||||||
${PW_DISPLAY} \
|
${PW_DISPLAY} \
|
||||||
${PW_INHIBIT_SLR} \
|
${PW_INHIBIT_SLR}\
|
||||||
"${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[@]}
|
"${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[@]}
|
||||||
wait_wineserver
|
wait_wineserver
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user