Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 22, 2025

Ports improvements from pengwin-enterprise-rootfs-builds to enhance WSL2 GUI support, particularly WSLg integration and hardware acceleration.

Changes

New files:

  • create_userpath.sh - Ensures /run/user/<uid> exists with correct ownership
  • create_userpath.sudoers - Grants wheel group passwordless access

00-remix.sh:

  • WSLg support: symlinks /mnt/wslg/runtime-dir/{wayland-0,wayland-0.lock} and pulse sockets to /run/user/<uid>
  • Sets XDG_RUNTIME_DIR when systemd unavailable
  • Adds WAYLAND_DISPLAY to environment persistence
  • Enables D3D12 video acceleration via VDPAU_DRIVER, LIBVA_DRIVER_NAME, GALLIUM_DRIVER
  • Switches DISPLAY detection from ipconfig.exe to route.exe with fallback to ip route
  • Implements persistent dbus sessions via /tmp/dbus_env_*
  • Refactored into main() function

00-remix.fish:

  • Parallel WSLg socket setup and video acceleration variables
  • SSH_CONNECTION early exit

create-targz.sh:

  • Installs create_userpath files to /usr/local/bin and /etc/sudoers.d

Example

Before: GUI apps fail or have degraded performance due to missing /run/user and no hardware acceleration.

After: On shell init with WSLg:

# /run/user/1000 created with proper permissions
# Symlinks: /run/user/1000/wayland-0 -> /mnt/wslg/runtime-dir/wayland-0
# Symlinks: /run/user/1000/pulse/native -> /mnt/wslg/runtime-dir/pulse/native
# Environment: VDPAU_DRIVER=d3d12, LIBVA_DRIVER_NAME=d3d12, GALLIUM_DRIVER=d3d12
Original prompt

there are improvements implemented in /run/user and others in 00-wle.sh from the repo https://github.com/WhitewaterFoundry/pengwin-enterprise-rootfs-build that can be migrated to this repo in the 00-remix.* files


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Migrate improvements from /run/user and 00-wle.sh Migrate WSLg, video acceleration, and /run/user improvements from pengwin-enterprise Nov 22, 2025
Copilot AI requested a review from crramirez November 22, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants