FrodeSolheim / fs-uae-launcher

A frontend for the FS-UAE Amiga emulator with support for the OpenRetro online game database.
GNU General Public License v2.0
61 stars 14 forks source link

FS-UAE opened as an X11 window even when the launcher is running in a Wayland window #157

Open rogerskeie opened 7 months ago

rogerskeie commented 7 months ago

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

rogerskeie commented 7 months ago

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 "$@"