Skip to content

[Linux] Daggerfall Unity won't start in pure Wayland environment #2728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jookuuj opened this issue Mar 6, 2025 · 1 comment · May be fixed by #2733
Open

[Linux] Daggerfall Unity won't start in pure Wayland environment #2728

jookuuj opened this issue Mar 6, 2025 · 1 comment · May be fixed by #2733

Comments

@jookuuj
Copy link

jookuuj commented Mar 6, 2025

Hi! Thanks for making Daggerfall Unity!

I encountered a problem with running the game on Wayland. The game won't detect the screen resolution and it refuses to start.

But there is a way to fix it. You need to set the SDL_VIDEODRIVER environment variable to x11 before you can launch Daggerfall Unity. There could be a simple launcher script for Wayland users:

#!/bin/bash
SDL_VIDEODRIVER=x11 DaggerfallUnity.x86_64 &
# End of launch_DFU_Wayland.sh

Or maybe this fix should be just mentioned in the ReadMe and/or on the installation instructions page on the wiki? At any rate, this fix needs Xwayland to be installed on the system. Also, note that just installing Xwayland (or creating a settings.ini config file) won't fix this issue automatically.

@Z-Machine Z-Machine linked a pull request Mar 20, 2025 that will close this issue
@magicaldave
Copy link

This might not be the best place to mention this, but, some environments also need the TERM envvar set, or Console.Log will immediately throw errors, and even break Convenient Clock. Unknown if other mods are affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants