Merge pull request 'Uses software for 3d rendering' (#33) from fix_video_2 into main
Reviewed-on: #33main opengnsys-3.1.0
commit
f85020734c
|
@ -33,12 +33,25 @@ fi
|
|||
#[ -x "/usr/bin/xterm" ] && x11_terminal=/usr/bin/kitty
|
||||
#[ -x "/usr/bin/i3-sensible-terminal" ] && x11_terminal=/usr/bin/i3-sensible-terminal
|
||||
|
||||
# The admin page is hosted remotely but executes things on localhost
|
||||
# --- El navegador y flags (QtWebEngine/Chromium) ---
|
||||
# Seguridad: desactiva CORS
|
||||
QTWEBENGINE_CHROMIUM_FLAGS="--disable-web-security"
|
||||
|
||||
[ "$UID" -eq "0" ] && QTWEBENGINE_CHROMIUM_FLAGS="${QTWEBENGINE_CHROMIUM_FLAGS} --no-sandbox"
|
||||
# Estabilidad en entornos sin GPU/GL y con /dev/shm limitado:
|
||||
QTWEBENGINE_CHROMIUM_FLAGS+=" --disable-gpu --use-gl=disabled --disable-gpu-compositing"
|
||||
QTWEBENGINE_CHROMIUM_FLAGS+=" --disable-features=VaapiVideoDecoder,AcceleratedVideoDecode,CanvasOopRasterization,UseSkiaRenderer"
|
||||
QTWEBENGINE_CHROMIUM_FLAGS+=" --disable-dev-shm-usage"
|
||||
# Root: Chromium exige --no-sandbox
|
||||
if [ "$EUID" -eq 0 ]; then
|
||||
QTWEBENGINE_CHROMIUM_FLAGS+=" --no-sandbox"
|
||||
fi
|
||||
export QTWEBENGINE_CHROMIUM_FLAGS
|
||||
|
||||
# Entorno Qt (software puro; X11 por xcb)
|
||||
export QT_QPA_PLATFORM=xcb
|
||||
export QSG_RHI_BACKEND=software
|
||||
export QT_QUICK_BACKEND=software
|
||||
export LIBGL_ALWAYS_SOFTWARE=1
|
||||
export QT_XCB_GL_INTEGRATION=none
|
||||
|
||||
|
||||
## sway
|
||||
|
|
Loading…
Reference in New Issue