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
Vladislav
PortWINE
Commits
b4f7f301
Commit
b4f7f301
authored
Feb 11, 2024
by
Boria138
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use system gamemode if available
As it turns out using the containerized version of gamemode breaks the system gamemode
parent
88ec0d7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
32 deletions
+56
-32
runlib
data_from_portwine/scripts/runlib
+56
-32
No files found.
data_from_portwine/scripts/runlib
View file @
b4f7f301
...
...
@@ -293,20 +293,28 @@ start_portwine () {
export
int_xneur
=
1
fi
if
[[
"
$PW_USE_GAMEMODE
"
=
"1"
]]
;
then
export
GAMEMODERUN
=
1
pkill gamemoded
sleep
0.1
GAMEMODEAUTO_NAME
=
"libgamemodeauto.so.0"
if
[[
!
-z
"
${
PW_LD_PRELOAD
}
"
]]
then
export
PW_LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
:
${
GAMEMODEAUTO_NAME
}
"
else
export
PW_LD_PRELOAD
=
"
${
GAMEMODEAUTO_NAME
}
"
fi
env
LD_LIBRARY_PATH
=
"
${
PW_PLUGINS_PATH
}
/portable/lib/lib64:
${
PW_PLUGINS_PATH
}
/portable/lib/lib32"
\
"
${
PW_PLUGINS_PATH
}
/portable/bin/gamemoded"
&>/dev/null &
print_info
"Gamemod will be launched."
if
command
-v
gamemoded
;
then
export
GAMEMODERUN
=
1
PW_GAMEMODERUN_SLR
=
"gamemoderun"
systemctl
enable
--now
--user
gamemoded &>/dev/null
print_info
"Gamemod will be launched."
else
export
GAMEMODERUN
=
1
if
!
pidof gamemoded &>/dev/null
;
then
GAMEMODEAUTO_NAME
=
"libgamemodeauto.so.0"
if
[[
!
-z
"
${
PW_LD_PRELOAD
}
"
]]
then
export
PW_LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
:
${
GAMEMODEAUTO_NAME
}
"
else
export
PW_LD_PRELOAD
=
"
${
GAMEMODEAUTO_NAME
}
"
fi
env
LD_LIBRARY_PATH
=
"
${
PW_PLUGINS_PATH
}
/portable/lib/lib64:
${
PW_PLUGINS_PATH
}
/portable/lib/lib32"
\
"
${
PW_PLUGINS_PATH
}
/portable/bin/gamemoded"
&>/dev/null &
print_info
"Gamemod will be launched."
sleep
0.1
fi
fi
else
export
GAMEMODERUN
=
0
print_info
"Gamemod is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=
$PW_USE_GAMEMODE
"
...
...
@@ -723,15 +731,28 @@ pw_run () {
echo
"Log WINE:"
>>
"
${
PW_LOG_TO_FILE
}
"
echo
""
print_debug
"Log from RUNTIME and WINE:"
${
PW_RUN_GAMESCOPE
}
\
${
pw_runtime
}
\
env
PATH
=
"
${
PATH
}
"
\
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
\
LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
"
\
VK_LAYER_PATH
=
"
${
PW_VK_LAYER_PATH
}
"
\
VK_INSTANCE_LAYERS
=
${
PW_VK_INSTANCE_LAYERS
}
\
${
PW_MANGOHUD_SLR
}
\
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[@]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
if
[[
!
-z
"
$PW_GAMEMODERUN_SLR
"
]]
;
then
${
PW_RUN_GAMESCOPE
}
\
${
pw_runtime
}
\
env
PATH
=
"
${
PATH
}
"
\
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
\
LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
"
\
VK_LAYER_PATH
=
"
${
PW_VK_LAYER_PATH
}
"
\
VK_INSTANCE_LAYERS
=
${
PW_VK_INSTANCE_LAYERS
}
\
${
PW_GAMEMODERUN_SLR
}
\
${
PW_MANGOHUD_SLR
}
\
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[@]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
else
${
PW_RUN_GAMESCOPE
}
\
${
pw_runtime
}
\
env
PATH
=
"
${
PATH
}
"
\
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
\
LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
"
\
VK_LAYER_PATH
=
"
${
PW_VK_LAYER_PATH
}
"
\
VK_INSTANCE_LAYERS
=
${
PW_VK_INSTANCE_LAYERS
}
\
${
PW_MANGOHUD_SLR
}
\
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[@]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
fi
else
if
[[
"
${
PW_USE_TERMINAL
}
"
==
"1"
]]
;
then
export
PW_ADD_TO_ARGS_IN_RUNTIME
=
"--xterm"
...
...
@@ -740,16 +761,19 @@ pw_run () {
echo
""
echo
"Log WINE:"
>
"
${
PW_LOG_TO_FILE
}
"
print_debug
"Log from RUNTIME and WINE:"
${
PW_RUN_GAMESCOPE
}
\
${
pw_runtime
}
\
env
PATH
=
"
${
PATH
}
"
\
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
\
LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
"
\
VK_LAYER_PATH
=
"
${
PW_VK_LAYER_PATH
}
"
\
VK_INSTANCE_LAYERS
=
"
${
PW_VK_INSTANCE_LAYERS
}
"
\
${
PW_MANGOHUD_SLR
}
\
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[@]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
cat
"
${
PW_LOG_TO_FILE
}
"
if
[[
!
-z
"
$PW_GAMEMODERUN_SLR
"
]]
;
then
${
PW_RUN_GAMESCOPE
}
\
${
pw_runtime
}
\
env
PATH
=
"
${
PATH
}
"
\
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
\
LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
"
\
VK_LAYER_PATH
=
"
${
PW_VK_LAYER_PATH
}
"
\
VK_INSTANCE_LAYERS
=
"
${
PW_VK_INSTANCE_LAYERS
}
"
\
${
PW_GAMEMODERUN_SLR
}
\
${
PW_MANGOHUD_SLR
}
\
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[@]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
cat
"
${
PW_LOG_TO_FILE
}
"
fi
fi
}
export
-f
pw_run
...
...
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