File tree Expand file tree Collapse file tree 4 files changed +28
-9
lines changed
root/etc/s6-overlay/s6-rc.d Expand file tree Collapse file tree 4 files changed +28
-9
lines changed Original file line number Diff line number Diff line change 1616 https://github.com/selkies-project/selkies.git \
1717 /src && \
1818 cd /src && \
19- git checkout -f 0fab9f9c41354cbb0e782604b0c3c511842a3289
19+ git checkout -f c3cf4cc2a3b6984104e494572b232730883c9aa6
2020
2121RUN \
2222 echo "**** build shared core library ****" && \
@@ -166,7 +166,7 @@ RUN \
166166 echo "**** install selkies ****" && \
167167 curl -o \
168168 /tmp/selkies.tar.gz -L \
169- "https://github.com/selkies-project/selkies/archive/0fab9f9c41354cbb0e782604b0c3c511842a3289 .tar.gz" && \
169+ "https://github.com/selkies-project/selkies/archive/c3cf4cc2a3b6984104e494572b232730883c9aa6 .tar.gz" && \
170170 cd /tmp && \
171171 tar xf selkies.tar.gz && \
172172 cd selkies-* && \
Original file line number Diff line number Diff line change 1616 https://github.com/selkies-project/selkies.git \
1717 /src && \
1818 cd /src && \
19- git checkout -f 0fab9f9c41354cbb0e782604b0c3c511842a3289
19+ git checkout -f c3cf4cc2a3b6984104e494572b232730883c9aa6
2020
2121RUN \
2222 echo "**** build shared core library ****" && \
@@ -162,7 +162,7 @@ RUN \
162162 echo "**** install selkies ****" && \
163163 curl -o \
164164 /tmp/selkies.tar.gz -L \
165- "https://github.com/selkies-project/selkies/archive/0fab9f9c41354cbb0e782604b0c3c511842a3289 .tar.gz" && \
165+ "https://github.com/selkies-project/selkies/archive/c3cf4cc2a3b6984104e494572b232730883c9aa6 .tar.gz" && \
166166 cd /tmp && \
167167 tar xf selkies.tar.gz && \
168168 cd selkies-* && \
Original file line number Diff line number Diff line change @@ -8,11 +8,18 @@ while true; do
88 sleep .5
99done
1010
11- # set sane resolution before starting apps
12- if ! s6-setuidgid abc xrandr | grep -q "1024x768"; then
13- s6-setuidgid abc xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
14- s6-setuidgid abc xrandr --addmode screen "1024x768"
15- s6-setuidgid abc xrandr --output screen --mode "1024x768" --dpi 96
11+ # set resolution before starting apps
12+ RESOLUTION_WIDTH=${SELKIES_MANUAL_WIDTH:-1024}
13+ RESOLUTION_HEIGHT=${SELKIES_MANUAL_HEIGHT:-768}
14+ if [ "$RESOLUTION_WIDTH" = "0" ]; then RESOLUTION_WIDTH=1024; fi
15+ if [ "$RESOLUTION_HEIGHT" = "0" ]; then RESOLUTION_HEIGHT=768; fi
16+ MODELINE=$(s6-setuidgid abc cvt "${RESOLUTION_WIDTH}" "${RESOLUTION_HEIGHT}" | grep "Modeline" | sed 's/^.*Modeline //')
17+ MODELINE_ARGS=$(echo "$MODELINE" | tr -d '"')
18+ MODELINE_NAME=$(echo "$MODELINE_ARGS" | awk '{print $1}')
19+ if ! s6-setuidgid abc xrandr | grep -q "$MODELINE_NAME"; then
20+ s6-setuidgid abc xrandr --newmode $MODELINE_ARGS
21+ s6-setuidgid abc xrandr --addmode screen "$MODELINE_NAME"
22+ s6-setuidgid abc xrandr --output screen --mode "$MODELINE_NAME" --dpi 96
1623fi
1724
1825# set xresources
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
3+ # Cleanup
4+ rm -f /tmp/.X1-lock
5+
36# Enable DRI3 support if detected
47VFBCOMMAND=""
58if ! which nvidia-smi && [ -e "/dev/dri/renderD128" ]; then
1114if [ "${DISABLE_DRI3}" != "false" ]; then
1215 VFBCOMMAND=""
1316fi
17+
18+ # Clamp virtual screen max size based on env
1419DEFAULT_RES="15360x8640"
1520if [ ! -z ${MAX_RES+x} ]; then
1621 DEFAULT_RES="${MAX_RES}"
1722fi
23+ if [ -n "${SELKIES_MANUAL_HEIGHT}" ] || [ -n "${SELKIES_MANUAL_WIDTH}" ]; then
24+ T_WIDTH="${SELKIES_MANUAL_WIDTH:-1024}"
25+ T_HEIGHT="${SELKIES_MANUAL_HEIGHT:-768}"
26+ if [ "${T_WIDTH}" = "0" ]; then T_WIDTH="1024"; fi
27+ if [ "${T_HEIGHT}" = "0" ]; then T_HEIGHT="768"; fi
28+ DEFAULT_RES="${T_WIDTH}x${T_HEIGHT}"
29+ fi
1830
1931# Run Xvfb server with required extensions
2032exec s6-setuidgid abc \
You can’t perform that action at this time.
0 commit comments