mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-24 08:57:21 +00:00
25 lines
613 B
Bash
25 lines
613 B
Bash
#!/bin/bash
|
|
# Wine Launcher - executes Windows .exe files
|
|
|
|
EXE_FILE="$1"
|
|
|
|
# Check if Wine is installed
|
|
if ! command -v wine &> /dev/null; then
|
|
zenity --error --text="Wine not installed. Install Windows runtime?"
|
|
exit 1
|
|
fi
|
|
|
|
# Set Wine prefix
|
|
export WINEPREFIX="$HOME/.wine-aethex"
|
|
|
|
# Try to run with Wine
|
|
wine "$EXE_FILE" 2>&1 | tee /tmp/wine-debug.log
|
|
|
|
# If Wine fails, offer VM fallback
|
|
if [ $? -ne 0 ]; then
|
|
zenity --question --text="Wine failed. Use Windows VM instead?"
|
|
if [ $? -eq 0 ]; then
|
|
# Launch QEMU/KVM Windows VM (TODO: implement)
|
|
notify-send "VM launcher not implemented yet"
|
|
fi
|
|
fi
|