# Set necessary environment variables export QT_QPA_PLATFORM=eglfs export QT_QPA_EGLFS_ALWAYS_SET_MODE=1 export QML2_IMPORT_PATH='/usr/lib/qt5/qml/' export XDG_RUNTIME_DIR=/run/user/0 export QT_LOGGING_RULES="qt.qpa.*=true" # Disable cursor for kiosk mode export QT_QPA_EGLFS_HIDECURSOR=1 # Set the default URL if not already set DEFAULT_URL=${DEFAULT_URL:-"http://example.com"} # Run the qt-kiosk-browser qt-kiosk-browser --platform eglfs --no-sandbox --disable-gpu-compositing --fullscreen $DEFAULT_URL