feat: enable HW accel for firefox when loaded useful for faster browsing.

Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
This commit is contained in:
vajonam 2024-04-05 10:07:44 -04:00
parent 5859feb29e
commit 7a614e8c67

View File

@ -73,6 +73,9 @@ ADD supervisord.conf /etc/
# Add a default file to resize, etc for noVNC.
ADD vncresize.html /usr/share/novnc/index.html
#Set firefox to run with hardware accel as well.
RUN sed -i 's|exec $MOZ_LIBDIR/$MOZ_APP_NAME "$@"|if [ -n "$ENABLEHWGPU" ] \&\& [ "$ENABLEHWGPU" = "true" ]; then\n exec /usr/bin/vglrun $MOZ_LIBDIR/$MOZ_APP_NAME "$@"\nelse\n exec $MOZ_LIBDIR/$MOZ_APP_NAME "$@"\nfi|g' /usr/bin/firefox-esr
VOLUME /configs/
VOLUME /prints/