WSLg (Windows Subsystem for Linux GUI) allows you to run Linux GUI applications directly on Windows 11. Perfect for testing the BabySmash Linux port!
- Windows 11 with WSL2 installed
- WSLg (comes with Windows 11 by default)
- Ubuntu (or any Linux distro)
# In PowerShell (Administrator)
wsl --install# In WSL terminal
wget https://dot.net/v1/dotnet-install.sh
chmod +x dotnet-install.sh
./dotnet-install.sh --channel 10.0
echo 'export PATH="$PATH:$HOME/.dotnet"' >> ~/.bashrc
source ~/.bashrcsudo apt update
sudo apt install espeak# Clone the repository (or navigate to existing clone)
cd /path/to/babysmash
# Build and run
cd BabySmash.Linux
dotnet runcd BabySmash.Linux
dotnet publish -c Release -r linux-x64 --self-contained
# Run the built executable
./bin/Release/net10.0/linux-x64/publish/BabySmash.Linux✅ Displays window on WSLg
✅ Keyboard input handling
✅ Creates colored shapes when pressing keys
✅ Letters and numbers recognition
✅ Word detection (tries to find words you type)
✅ Text-to-speech (if espeak installed)
✅ ESC to exit
Make sure you have Windows 11 and WSLg is working:
# Test WSLg with a simple app
sudo apt install x11-apps
xclockIf xclock appears, WSLg is working!
Text-to-speech is optional. Install espeak:
sudo apt install espeakMake sure .NET is in your PATH:
dotnet --version
# Should show 10.x.xThe basic Linux port is working! Next phases will add:
- More shapes (circles, stars, hearts, etc.)
- Better animations
- Audio playback
- Multi-monitor support
- Packaging (AppImage, etc.)
This is an early implementation for testing. Please report any issues!