From 1a6bb2108904771777b26e0ecddfcef419b91540 Mon Sep 17 00:00:00 2001 From: Boria138 Date: Thu, 28 Mar 2024 15:05:20 +0500 Subject: [PATCH] Fix gamemode in flatpak In flatpak gamemode is built without tools, which includes gamemoded, so the condition does not work --- data_from_portwine/scripts/runlib | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib index ba8c216..1a32c94 100755 --- a/data_from_portwine/scripts/runlib +++ b/data_from_portwine/scripts/runlib @@ -344,6 +344,10 @@ d3d11 d3d10 d3d10core d3d10_1 d3d9 d3d8 dxgi wined3d vulkan-1" PW_GAMEMODERUN_SLR="gamemoderun" systemctl enable --now --user gamemoded &>/dev/null print_info "Gamemod will be launched." + elif check_flatpak ; then + export GAMEMODERUN=1 + PW_GAMEMODERUN_SLR="gamemoderun" + print_info "Gamemod will be launched." elif [[ "$PW_USE_RUNTIME" == 1 ]] ; then export GAMEMODERUN=1 if ! pidof gamemoded &>/dev/null ; then