fs-uae-launcher
fs-uae-launcher copied to clipboard
FS-UAE opened as an X11 window even when the launcher is running in a Wayland window
I have the FS-UAE Launcher running in a Wayland window (confirmed with the KWin debug console), but any fs-uae instances opened from it are opened in XWayland instead of native Wayland.
FS-UAE running in XWayland has issues with the emulator controls GUI (F12) where it doesn't respond to any keyboard inputs until I switch to another window and then back to FS-UAE. This works fine in native Wayland.
The only way I can get FS-UAE running as a Wayland window is manually from the terminal, for example:
SDL_VIDEODRIVER=wayland fs-uae --fullscreen --zoom=auto ~/Documents/FS-UAE/Configurations/Lemmings.fs-uae
I've found a workaround.
Create this folder, which is one of the folders fs-uae-launcher looks for the fs-uae executable in:
mkdir -p ~/Documents/FS-UAE/System/FS-UAE/Linux/x86-64
In this folder, create the file fs-uae with the following contents (remember to make it executable afterwards with chmod +x):
#!/bin/sh
SDL_VIDEODRIVER=wayland fs-uae "$@"