kando-menu / kando

šŸ„§ The Cross-Platform Pie Menu.
https://ko-fi.com/post/Kando-1-0-0-released-G2G5Z1DOS
Other
2.66k stars 78 forks source link

Heroic Games Lancher is not opening #512

Closed OstapTelychko closed 3 months ago

OstapTelychko commented 3 months ago

Short Summary

Heroic Games Launcher crashes after run attempt. Heroic is used to run windows games on linux Heroic run command /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=heroic-run --file-forwarding com.heroicgameslauncher.hgl @@u %u @@

Kando output: Running on Linux (GNOME on x11). Loading settings from /path/to/.config/kando/config.json Loading settings from /path/to/.config/kando/menus.json [13944:0702/221514.066941:ERROR:atom_cache.cc(229)] Add _NET_WM_WINDOW_TYPE_DOCK to kAtomsToCache Kando 1.1.0 is ready. Successfully loaded Kando's renderer process. Failed to execute action: undefined

Steps to Reproduce the Issue

  1. Instal Kando and Heroic Games Lancher (Flatpak)
  2. Create in kando menu application item with command (/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=heroic-run --file-forwarding com.heroicgameslauncher.hgl @@u %u @@)
  3. Open kando menu and run aplication
  4. await crash of Heroic Launcher

Kando Version

v1.1.0

Installation Method

Via an installer downloaded from a release on GitHub

Desktop Environment

Linux, GNOME on X11, Other (specify below)

Environment Version

Linux Mint 21.3 shell Gnome 42.9 windows manager X11

Additional Information

No response

Schneegans commented 3 months ago

I just pushed a fix to main which improves the error message if the command execution failed. Now I see that the Heroic Games Launcher fails to start because of "GPU process isn't usable. Goodbye."

I do not know why this happens - maybe some environment variable is different? But a short search for this error reveals that adding --in-process-gpu to the command works:

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=heroic-run --file-forwarding com.heroicgameslauncher.hgl --in-process-gpu

While it would be cool to find the reason for this behavior, maybe this is a proper workaround for now?

OstapTelychko commented 3 months ago

Thank you, now it works fine full command look now /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=heroic-run --file-forwarding com.heroicgameslauncher.hgl @@u %u @@ --in-process-gpu