FS#68794 - UQM does not run under Wayland with SDL2 installed and configured

Attached to Project: Community Packages
Opened by Joseph Fox-Rabinovitz (MadPhysicist) - Sunday, 29 November 2020, 20:05 GMT
Last edited by Toolybird (Toolybird) - Sunday, 07 May 2023, 02:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Laurent Carlier (lordheavy)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

UQM does not run well under Wayland with SDL2 installed.

Additional info:
* package version(s): uqm-0.7.0-6
* config and/or log files etc.: See below
* link to upstream bug report, if any: N/A

Steps to reproduce:

$ uqm
The Ur-Quan Masters v0.7.0 (compiled Apr 8 2019 17:19:14)
This software comes with ABSOLUTELY NO WARRANTY;
for details see the included 'COPYING' file.

Netplay protocol version 0.4. Netplay opponent must have UQM 0.6.9 or later.
Initializing base SDL functionality.
Using SDL version 1.2.15 (compiled with 1.2.15)
Could not initialize SDL: No available video device.
Do not know how to display an error box

This is because I have SDL2 installed and `SDL_VIDEODRIVER=wayland` in my profile. I would like to use UQM and not interfere with my other programs.

Workaround:

Issue is addressed explicitly in https://wiki.archlinux.org/index.php/wayland#SDL2. Adding the following to the UQM script seems to work:

SDL_VIDEODRIVER=x11

Simply unsetting the variable does not appear to work.

Postscript:

Love this game. Thanks for making it available!
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 07 May 2023, 02:48 GMT
Reason for closing:  Upstream
Additional comments about closing:  Failing to see how this is an Arch packaging problem. The latest version does launch under wayland, but then keyboard input doesn't seem to work. Please report upstream.

Loading...