RetroDECK icon indicating copy to clipboard operation
RetroDECK copied to clipboard

XEMU: Pathing Error & Wayland problem

Open 0chroma opened this issue 1 year ago • 5 comments

small error with how xemu is configured, but it doesn't work when running RetroDECK on a wayland desktop:

xemu_version: 0.7.116
xemu_branch: b3fc80b3a83fa99aeb541a0c665cfb596cedd71c
xemu_commit: b3fc80b3a83fa99aeb541a0c665cfb596cedd71c
xemu_date: Thu Dec 14 03:22:31 PM UTC 2023
xemu_settings_get_base_path: base path: /home/chroma/.var/app/net.retrodeck.retrodeck/data/xemu/xemu/
xemu_settings_get_path: config path: /home/chroma/.var/app/net.retrodeck.retrodeck/data/xemu/xemu/xemu.toml
Failed to initialize SDL video subsystem: x11 not available

0chroma avatar Feb 07 '24 01:02 0chroma

The pathing error we can check for 0.8.0b.

Wayland is a bit more complex as many flatpak versions of the emulators does not work even outside of RetroDECK or are semi broken in wayland.

@XargonWan check the pathing of XEMU

Lazorne avatar Feb 07 '24 06:02 Lazorne

I found a workaround, when I set SDL_VIDEODRIVER=wayland in the flatpak container then ran the configurator, xemu loaded properly

0chroma avatar Feb 08 '24 07:02 0chroma

I found a workaround, when I set SDL_VIDEODRIVER=wayland in the flatpak container then ran the configurator, xemu loaded properly

Maybe we should use the same approach as this?

--env=QT_QPA_PLATFORM=wayland-egl;wayland;xcb

XargonWan avatar Feb 13 '24 14:02 XargonWan

I'm not sure what SDL uses to detect what video driver to use, but that might need to be passed into the flatpak for it to work. I'm not sure if the same QT syntax would work, you could try though.

0chroma avatar Feb 13 '24 15:02 0chroma

I'm not sure what SDL uses to detect what video driver to use, but that might need to be passed into the flatpak for it to work. I'm not sure if the same QT syntax would work, you could try though.

My fear is that if we set that flag, we might break it for x11

XargonWan avatar Feb 13 '24 16:02 XargonWan