Open poperigby opened 3 years ago
GameHub currently uses XTest to generate fake keypresses so it only works on X11 now.
refactoring branch has more checks to prevent crashes on Wayland and there's a message in Controller Settings if it's not supported.
There probably should be a way to generate GTK events instead of fake keypresses to make it work on Wayland, but I haven't tried to do it yet.
Got it. Should I open a new issue for Wayland controller support?
Steps to reproduce
Version and environment
It's saying Unity is my DE, even though I'm actually using Sway. This is because I've manually set
XDG_CURRENT_DESKTOP
toUnity
, to make the system tray work correctly in Sway.GDB log
GDB log
``` [INFO] Restarting with GDB [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [DEBUG] [Database.migrate] Latest db version: 11, current: 11 [INFO] - GameHub [INFO] Version: 0.16.0-3e2cb8a-makepkg [INFO] Branch: makepkg [INFO] Commit: 3e2cb8a1e3b91e10fb244e7c6983ba49d934eb8f [INFO] - Environment [INFO] Distro: Arch Linux [INFO] DE: Unity [INFO] GTK: 3.24.28 [INFO] Themes: Ant-Dracula | Papirus-Dark [DEBUG] [Gamepad] 'Microsoft X-Box 360 pad' connected [ignored] [DEBUG] [Gamepad] 'Microsoft X-Box One S pad' connected [FATAL] [Json] json_object_get_string_member: assertion 'node != NULL' failed [FATAL] [Json] json_object_get_string_member: assertion 'node != NULL' failed [INFO] [ButlerClient: log] Fetching fresh data... [INFO] [ButlerClient: log] Fetching page 1 [INFO] [ButlerClient: log] Fetching page 2 [INFO] [ButlerClient: log] Fetching page 3 [INFO] [ButlerClient: log] Waited 270.652577ms for fetch (non-shared) [FATAL] [Json] json_object_get_string_member: assertion 'node != NULL' failed [FATAL] [Json] json_object_get_string_member: assertion 'node != NULL' failed [FATAL] [Json] json_object_get_string_member: assertion 'node != NULL' failed [FATAL] [Gdk] gdk_x11_display_get_xdisplay: assertion 'GDK_IS_DISPLAY (display)' failed Thread 1 "com.github.tkas" received signal SIGSEGV, Segmentation fault. 0x00007ffff30efb5a in XKeysymToKeycode () from /usr/lib/libX11.so.6 Thread 17 (Thread 0x7fffcd074640 (LWP 145310) "pool-com.github"): #0 0x00007ffff2f83a9d in syscall () at /usr/lib/libc.so.6 #1 0x00007ffff7c1f06b in g_cond_wait_until () at /usr/lib/libglib-2.0.so.0 #2 0x00007ffff7ba08b3 in () at /usr/lib/libglib-2.0.so.0 #3 0x00007ffff7ba0a44 in g_async_queue_timeout_pop () at /usr/lib/libglib-2.0.so.0 #4 0x00007ffff7c01d2a in () at /usr/lib/libglib-2.0.so.0 #5 0x00007ffff7bff0c1 in () at /usr/lib/libglib-2.0.so.0 #6 0x00007ffff28f7299 in start_thread () at /usr/lib/libpthread.so.0 #7 0x00007ffff2f89053 in clone () at /usr/lib/libc.so.6 Thread 13 (Thread 0x7fffcf078640 (LWP 145306) "pool-com.github"): #0 0x00007ffff7ac1e6a in () at /usr/lib/libgio-2.0.so.0 #1 0x00007ffff7a4bbe0 in g_content_type_guess () at /usr/lib/libgio-2.0.so.0 #2 0x00007ffff7aba0d2 in () at /usr/lib/libgio-2.0.so.0 #3 0x00007ffff7abb3f5 in () at /usr/lib/libgio-2.0.so.0 #4 0x00007ffff7ab3446 in () at /usr/lib/libgio-2.0.so.0 #5 0x00007ffff79f2c6d in g_file_enumerator_next_file () at /usr/lib/libgio-2.0.so.0 #6 0x0000555555721b82 in game_hub_utils_fs_utils_find_case_insensitive (root=0x5555643d1e80, path=0x7fffbc378310 "appmanifest_233610.acf", parts=0x0, parts_length1=0) at ../src/utils/FSUtils.vala:340 #7 0x000055555559d398 in game_hub_data_sources_steam_steam_find_app_install_dir (app=0x7fffbc35cd00 "233610", install_dir=0x0) at ../src/data/sources/steam/Steam.vala:105 #8 0x000055555559d89a in game_hub_data_sources_steam_steam_is_app_installed (app=0x7fffbc35cd00 "233610") at ../src/data/sources/steam/Steam.vala:119 #9 0x00005555555a9960 in game_hub_data_sources_steam_steam_game_real_update_status (base=0x7fffbc352c60) at ../src/data/sources/steam/SteamGame.vala:248 #10 0x0000555555573b82 in game_hub_data_runnable_update_status (self=0x7fffbc352c60) at ../src/data/Runnable.vala:162 #11 0x00005555555a6071 in game_hub_data_sources_steam_steam_game_construct (object_type=Python Exception