Fixed GSTREAMER path for GE Proton 10+

This commit is contained in:
Mikhail Tergoev 2025-05-20 20:28:43 +03:00
parent d363d99956
commit e09524a3d2

@ -1694,7 +1694,11 @@ init_wine_ver () {
if ! check_flatpak ; then if ! check_flatpak ; then
WINE_LIBRARY_PATH="${WINEDIR}/lib" WINE_LIBRARY_PATH="${WINEDIR}/lib"
[[ -d "${WINEDIR}/lib64/gstreamer-1.0" ]] && WINE_LIBRARY_PATH+=":${WINEDIR}/lib64" if [[ -d "${WINEDIR}/lib64/gstreamer-1.0" ]]
then WINE_LIBRARY_PATH+=":${WINEDIR}/lib64"
elif [[ -d "${WINEDIR}/lib/x86_64-linux-gnu/gstreamer-1.0" ]]
then WINE_LIBRARY_PATH+=":${WINEDIR}/lib/x86_64-linux-gnu:${WINEDIR}/lib/i386-linux-gnu"
fi
export WINE_LIBRARY_PATH export WINE_LIBRARY_PATH
fi fi
@ -3135,10 +3139,12 @@ start_portwine () {
pw_init_runtime pw_init_runtime
if [[ "${PW_USE_GSTREAMER}" == "1" ]] ; then if [[ "${PW_USE_GSTREAMER}" == "1" ]] ; then
if [[ -d "${WINEDIR}/lib64/gstreamer-1.0" ]] \ if ! check_flatpak ; then
&& ! check_flatpak if [[ -d "${WINEDIR}/lib64/gstreamer-1.0" ]]
then then export GST_PLUGIN_SYSTEM_PATH_1_0="${WINEDIR}/lib64/gstreamer-1.0:${WINEDIR}/lib/gstreamer-1.0"
export GST_PLUGIN_SYSTEM_PATH_1_0="${WINEDIR}/lib64/gstreamer-1.0:${WINEDIR}/lib/gstreamer-1.0" elif [[ -d "${WINEDIR}/lib/x86_64-linux-gnu/gstreamer-1.0" ]]
then export GST_PLUGIN_SYSTEM_PATH_1_0="${WINEDIR}/lib/x86_64-linux-gnu/gstreamer-1.0:${WINEDIR}/lib/i386-linux-gnu/gstreamer-1.0"
fi
fi fi
export GST_GL_WINDOW="surfaceless" export GST_GL_WINDOW="surfaceless"
unset GST_GL_WINDOW unset GST_GL_WINDOW