Skip to content

Commit 3d22861

Browse files
committed
ingest pixelflux for gpu detection, add X11 fallback on legacy systems
1 parent 4a8f5c3 commit 3d22861

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • root/etc/s6-overlay/s6-rc.d/init-selkies-config

root/etc/s6-overlay/s6-rc.d/init-selkies-config/run

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/usr/bin/with-contenv bash
22

3+
# check if underlying system supports wayland binaries
4+
if ! grep -q avx2 /proc/cpuinfo; then
5+
echo "[ls.io-init] CPU does not support AVX2. Falling back to X11"
6+
printf "false" > /run/s6/container_environment/PIXELFLUX_WAYLAND
7+
PIXELFLUX_WAYLAND="false"
8+
fi
9+
310
# set paths for wayland or xorg
411
if [[ "${PIXELFLUX_WAYLAND}" == "true" ]];then
512
CONF_DIR="$HOME/.config/labwc"

0 commit comments

Comments
 (0)