fixed gamemode in native PP
This commit is contained in:
parent
c7ef786ee5
commit
39eea0f34a
@ -2,6 +2,8 @@
|
|||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
История изменений:
|
История изменений:
|
||||||
|
|
||||||
|
* исправлено использование gamemode в нативной версии PortProton
|
||||||
|
|
||||||
###Scripts version 2366### / Дата: 24.10.2024 / Размер скачиваемого обновления: 4 мегабайта
|
###Scripts version 2366### / Дата: 24.10.2024 / Размер скачиваемого обновления: 4 мегабайта
|
||||||
* удалена автоустановка "CatsLauncher" по причине переезда игры "Передний край" в "vkPlay"
|
* удалена автоустановка "CatsLauncher" по причине переезда игры "Передний край" в "vkPlay"
|
||||||
* обновлена версия меню трея (спасибо Htylol)
|
* обновлена версия меню трея (спасибо Htylol)
|
||||||
|
@ -2897,33 +2897,32 @@ start_portwine () {
|
|||||||
|
|
||||||
if check_gamescope_session ; then
|
if check_gamescope_session ; then
|
||||||
export PW_GAMEMODERUN_SLR=""
|
export PW_GAMEMODERUN_SLR=""
|
||||||
elif [[ "$PW_USE_GAMEMODE" = "1" ]] && [[ -n "$DBUS_SESSION_BUS_ADDRESS" ]]; then
|
elif [[ "$PW_USE_GAMEMODE" = "1" ]] \
|
||||||
if ! check_flatpak ; then
|
&& [[ -n "$DBUS_SESSION_BUS_ADDRESS" ]]
|
||||||
if systemctl is-active --quiet ananicy.service \
|
then
|
||||||
|| systemctl is-active --quiet ananicy-cpp.service
|
if command -v systemctl \
|
||||||
|
&& (systemctl is-active --quiet ananicy.service \
|
||||||
|
|| systemctl is-active --quiet ananicy-cpp.service)
|
||||||
then
|
then
|
||||||
export GAMEMODERUN=0
|
export GAMEMODERUN=0
|
||||||
export PW_GAMEMODERUN_SLR=""
|
export PW_GAMEMODERUN_SLR=""
|
||||||
|
|
||||||
if command -v powerprofilesctl &>/dev/null ; then
|
if command -v powerprofilesctl &>/dev/null ; then
|
||||||
if powerprofilesctl list | grep -q 'performance:'; then
|
if powerprofilesctl list | grep -q 'performance:' ; then
|
||||||
export PW_POWERPROFILECTL_SLR="powerprofilesctl launch -p performance --"
|
export PW_POWERPROFILECTL_SLR="powerprofilesctl launch -p performance --"
|
||||||
print_info "Gamemode replaced by powerprofilectl to avoid conflict with ananicy."
|
print_info "Gamemode replaced by powerprofilectl to avoid conflict with ananicy."
|
||||||
else
|
else
|
||||||
export PW_POWERPROFILECTL_SLR=""
|
export PW_POWERPROFILECTL_SLR=""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
else
|
|
||||||
if command -v gamemoded &>/dev/null ; then
|
|
||||||
export GAMEMODERUN=1
|
|
||||||
PW_GAMEMODERUN_SLR="gamemoderun"
|
|
||||||
systemctl enable --now --user gamemoded &>/dev/null
|
|
||||||
print_info "Gamemode will be launched."
|
|
||||||
elif check_flatpak ; then
|
elif check_flatpak ; then
|
||||||
export GAMEMODERUN=1
|
export GAMEMODERUN=1
|
||||||
PW_GAMEMODERUN_SLR="gamemoderun"
|
PW_GAMEMODERUN_SLR="gamemoderun"
|
||||||
print_info "Gamemode will be launched."
|
print_info "Gamemode will be launched."
|
||||||
|
elif command -v gamemoded &>/dev/null ; then
|
||||||
|
export GAMEMODERUN=1
|
||||||
|
PW_GAMEMODERUN_SLR="gamemoderun"
|
||||||
|
systemctl enable --now --user gamemoded &>/dev/null
|
||||||
|
print_info "Gamemode will be launched."
|
||||||
elif [[ "$PW_USE_RUNTIME" == 1 ]] ; then
|
elif [[ "$PW_USE_RUNTIME" == 1 ]] ; then
|
||||||
export GAMEMODERUN=1
|
export GAMEMODERUN=1
|
||||||
if ! pidof gamemoded &>/dev/null ; then
|
if ! pidof gamemoded &>/dev/null ; then
|
||||||
@ -2945,7 +2944,6 @@ start_portwine () {
|
|||||||
export PW_GAMEMODERUN_SLR=""
|
export PW_GAMEMODERUN_SLR=""
|
||||||
print_info "Gamemode is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=$PW_USE_GAMEMODE"
|
print_info "Gamemode is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=$PW_USE_GAMEMODE"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
export GAMEMODERUN=0
|
export GAMEMODERUN=0
|
||||||
export PW_GAMEMODERUN_SLR=""
|
export PW_GAMEMODERUN_SLR=""
|
||||||
|
Loading…
Reference in New Issue
Block a user