diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib index 28a92cf..ad92b4e 100755 --- a/data_from_portwine/scripts/runlib +++ b/data_from_portwine/scripts/runlib @@ -159,8 +159,7 @@ start_portwine () { fi if [[ "${PW_PRIME_RENDER_OFFLOAD}" == 1 ]] ; then - if [[ ! -z $(command -v glxinfo) ]] \ - && [[ ! -z $(glxinfo -B | grep "OpenGL renderer" | grep -i "nvidia") ]] + if ${PW_WINELIB}/portable/bin/inxi -Gc0 | grep "renderer" | grep -i "nvidia" ; then print_debug "Nvidia used by default. Force disabled PRIME_RENDER_OFFLOAD" export __NV_PRIME_RENDER_OFFLOAD=0 @@ -220,7 +219,7 @@ start_portwine () { print_info "Gamemod will be launched." else export GAMEMODERUN=0 - echo "Gamemod is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=$PW_USE_GAMEMODE" + print_info "Gamemod is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=$PW_USE_GAMEMODE" fi pw_other_fixes diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index d4d78a5..a3626ec 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -180,10 +180,10 @@ portwine_start_debug () { fi echo "----------------------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" echo "GameMode status:" >> "${PORT_WINE_PATH}/${portname}.log" - if gamemoded -s | grep -q "active"; + if gamemoded -s | grep "is active"; then echo "gamemode is active" >> "${PORT_WINE_PATH}/${portname}.log" - elif gamemoded -s | grep -q "inactive"; + elif gamemoded -s | grep "is inactive"; then echo "gamemode is inactive" >> "${PORT_WINE_PATH}/${portname}.log" else