univrsal / input-overlay

Show keyboard, gamepad and mouse input on stream
GNU General Public License v2.0
3.03k stars 249 forks source link

Plugin doesn't load in obs flatpak #423

Closed claymorwan closed 3 weeks ago

claymorwan commented 1 month ago

Describe the bug The input-overlay plugin doesn't show up in my sources, I tried both installing it from flathub (like obs recommends) and manually but none work.

To Reproduce Steps to reproduce the behavior:

  1. Install obs from flatpak
  2. Try installing the plugin
  3. Open obs

Expected behavior Expected to load

Screenshots If applicable, add screenshots to help explain your problem.

Additional information:

univrsal commented 1 month ago

The normal version only works with a normal installation of OBS as I don't use Flatpak. The version from Flathub should work, if it doesn't you have to report it to the maintainer. It seems to be a known issue https://github.com/flathub/com.obsproject.Studio.Plugin.InputOverlay/issues/10

5n00p4eg commented 1 month ago

As a temporary fix: flatpak override --env=LD_LIBRARY_PATH=/app/lib com.obsproject.Studio Details

claymorwan commented 1 month ago

As a temporary fix: flatpak override --env=LD_LIBRARY_PATH=/app/lib com.obsproject.Studio Details

So that worked, but now it only detects when I'm pressing tab, shift and ctrl for some reason, the mouse doesn't detect anything either

univrsal commented 1 month ago

Seems like you're using wayland, libuihook doesn't work with wayland.

claymorwan commented 3 weeks ago

Bowomp, again sumthing that doesn't work with wayland

univrsal commented 3 weeks ago

Not much that can be done from what I can tell. Wayland does not support input hooking for security reasons and (as far as I know) offers no proper solution for legitimate use cases.