mirror of
https://github.com/jamesstringer90/appsandbox.git
synced 2026-10-22 11:03:15 -05:00
- systemd-user environment generator and appsandbox-gpu wrapper both append /usr/lib/wsl/lib to LD_LIBRARY_PATH. ldconfig has the .so.1 entries cached, but the 9P mount is read-only so the unversioned symlinks ldconfig wants to create can't be written. dlopen() of unversioned names (libcuda.so, libnvidia-encode.so, libnvcuvid.so) needs the path on LD_LIBRARY_PATH — without it ffmpeg's h264_nvenc / h264_cuvid plugins fail with 'Cannot load libcuda.so.1'. - setup.sh: symlink /usr/lib/wsl/lib/nvidia-smi to /usr/local/bin so the bare command works without env tweaks. Created unconditionally because the symlink target is resolved at exec time — the file appears under the agent's 9P mount on first boot regardless of when the symlink was created.