add software-gpu in startwm.sh

This commit is contained in:
pi-farm committed 2026-10-09 20:35:55 +00:00
1 parent 3bc500286e
commit 08bf1a7fad
1 file changed
+2 -2
+2 -2
View File
@@ -62,8 +62,8 @@ RUN chmod 440 /etc/sudoers && \
echo "LANG=${LANG}" >> /etc/environment && \ echo "LANG=${LANG}" >> /etc/environment && \
echo "LANGUAGE=${LANGUAGE}" >> /etc/environment && \ echo "LANGUAGE=${LANGUAGE}" >> /etc/environment && \
echo "LC_ALL=${LC_ALL}" >> /etc/environment && \ echo "LC_ALL=${LC_ALL}" >> /etc/environment && \
sed -i '2i export LANG=${LANG}\nexport LANGUAGE=${LANGUAGE}\nexport LC_ALL=${LC_ALL}\nexport XDG_SESSION_TYPE=x11\nexport GDK_BACKEND=x11' /etc/xrdp/startwm.sh && \ sed -i '2i export LANG=${LANG}\nexport LANGUAGE=${LANGUAGE}\nexport LC_ALL=${LC_ALL}\nexport XDG_SESSION_TYPE=x11\nexport GDK_BACKEND=x11\nexport LIBGL_ALWAYS_SOFTWARE=1\nexport GALLIUM_DRIVER=llvmpipe' /etc/xrdp/startwm.sh && \
echo "exec gnome-session" >> /etc/xrdp/startwm.sh && \ echo "exec dbus-run-session -- gnome-session" >> /etc/xrdp/startwm.sh && \
chmod +x /etc/xrdp/startwm.sh chmod +x /etc/xrdp/startwm.sh
EXPOSE 3389 EXPOSE 3389