Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
39eea0f3
Commit
39eea0f3
authored
Oct 25, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed gamemode in native PP
parent
c7ef786e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
43 deletions
+43
-43
changelog_ru
data_from_portwine/changelog_ru
+2
-0
functions_helper
data_from_portwine/scripts/functions_helper
+41
-43
No files found.
data_from_portwine/changelog_ru
View file @
39eea0f3
...
@@ -2,6 +2,8 @@
...
@@ -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)
...
...
data_from_portwine/scripts/functions_helper
View file @
39eea0f3
...
@@ -2897,54 +2897,52 @@ start_portwine () {
...
@@ -2897,54 +2897,52 @@ 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
\
then
&&
(
systemctl is-active
--quiet
ananicy.service
\
export
GAMEMODERUN
=
0
||
systemctl is-active
--quiet
ananicy-cpp.service
)
export
PW_GAMEMODERUN_SLR
=
""
then
export
GAMEMODERUN
=
0
if
command
-v
powerprofilesctl &>/dev/null
;
then
export
PW_GAMEMODERUN_SLR
=
""
if
powerprofilesctl list |
grep
-q
'performance:'
;
then
if
command
-v
powerprofilesctl &>/dev/null
;
then
export
PW_POWERPROFILECTL_SLR
=
"powerprofilesctl launch -p performance --"
if
powerprofilesctl list |
grep
-q
'performance:'
;
then
print_info
"Gamemode replaced by powerprofilectl to avoid conflict with ananicy.
"
export
PW_POWERPROFILECTL_SLR
=
"powerprofilesctl launch -p performance --
"
else
print_info
"Gamemode replaced by powerprofilectl to avoid conflict with ananicy."
export
PW_POWERPROFILECTL_SLR
=
""
else
fi
export
PW_POWERPROFILECTL_SLR
=
""
fi
fi
fi
fi
else
elif
check_flatpak
;
then
if
command
-v
gamemoded &>/dev/null
;
then
export
GAMEMODERUN
=
1
export
GAMEMODERUN
=
1
PW_GAMEMODERUN_SLR
=
"gamemoderun"
PW_GAMEMODERUN_SLR
=
"gamemoderun"
print_info
"Gamemode will be launched."
systemctl
enable
--now
--user
gamemoded &>/dev/null
elif
command
-v
gamemoded &>/dev/null
;
then
print_info
"Gamemode will be launched."
export
GAMEMODERUN
=
1
elif
check_flatpak
;
then
PW_GAMEMODERUN_SLR
=
"gamemoderun"
export
GAMEMODERUN
=
1
systemctl
enable
--now
--user
gamemoded &>/dev/null
PW_GAMEMODERUN_SLR
=
"gamemoderun"
print_info
"Gamemode will be launched."
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
GAMEMODEAUTO_NAME
=
"libgamemodeauto.so.0"
GAMEMODEAUTO_NAME
=
"libgamemodeauto.so.0"
if
[[
-n
"
${
PW_LD_PRELOAD
}
"
]]
;
then
if
[[
-n
"
${
PW_LD_PRELOAD
}
"
]]
;
then
export
PW_LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
:
${
GAMEMODEAUTO_NAME
}
"
export
PW_LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
:
${
GAMEMODEAUTO_NAME
}
"
else
else
export
PW_LD_PRELOAD
=
"
${
GAMEMODEAUTO_NAME
}
"
export
PW_LD_PRELOAD
=
"
${
GAMEMODEAUTO_NAME
}
"
fi
fi
env
LD_LIBRARY_PATH
=
"
${
PW_PLUGINS_PATH
}
/portable/lib/lib64:
${
PW_PLUGINS_PATH
}
/portable/lib/lib32"
\
env
LD_LIBRARY_PATH
=
"
${
PW_PLUGINS_PATH
}
/portable/lib/lib64:
${
PW_PLUGINS_PATH
}
/portable/lib/lib32"
\
"
${
PW_PLUGINS_PATH
}
/portable/bin/gamemoded"
&>/dev/null &
"
${
PW_PLUGINS_PATH
}
/portable/bin/gamemoded"
&>/dev/null &
print_info
"Gamemode will be launched."
print_info
"Gamemode will be launched."
sleep
0.1
sleep
0.1
fi
else
export
GAMEMODERUN
=
0
export
PW_GAMEMODERUN_SLR
=
""
print_info
"Gamemode is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=
$PW_USE_GAMEMODE
"
fi
fi
else
export
GAMEMODERUN
=
0
export
PW_GAMEMODERUN_SLR
=
""
print_info
"Gamemode is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=
$PW_USE_GAMEMODE
"
fi
fi
else
else
export
GAMEMODERUN
=
0
export
GAMEMODERUN
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment