1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/widelands/sdl-use-x11.patch
2022-12-03 07:32:21 +00:00

28 lines
1.1 KiB
Diff

diff --git a/xdg/org.widelands.Widelands.desktop b/xdg/org.widelands.Widelands.desktop
index 670eaf7..90331f9 100644
--- a/xdg/org.widelands.Widelands.desktop
+++ b/xdg/org.widelands.Widelands.desktop
@@ -83,7 +83,8 @@ Comment[zh_CN]=即时战略游戏
Comment[zh_TW]=一款即時演變的策略遊戲
Icon=org.widelands.Widelands
TryExec=widelands
-Exec=widelands
+# force glx, https://github.com/widelands/widelands/issues/4958
+Exec=env SDL_VIDEODRIVER=x11 widelands
Categories=Game;StrategyGame;
Keywords=Game;RTS;Real-time;Strategy;
Terminal=false
diff --git a/xdg/org.widelands.Widelands.desktop.stub b/xdg/org.widelands.Widelands.desktop.stub
index 95ef67b..1aff536 100644
--- a/xdg/org.widelands.Widelands.desktop.stub
+++ b/xdg/org.widelands.Widelands.desktop.stub
@@ -4,7 +4,8 @@ Type=Application
GENERIC_NAME_COMMENT_HOOK
Icon=org.widelands.Widelands
TryExec=widelands
-Exec=widelands
+# force glx, https://github.com/widelands/widelands/issues/4958
+Exec=env SDL_VIDEODRIVER=x11 widelands
Categories=Game;StrategyGame;
Keywords=Game;RTS;Real-time;Strategy;
Terminal=false