games-on-whales / wolf

Stream virtual desktops and games running in Docker
https://games-on-whales.github.io/wolf/stable/
MIT License
292 stars 20 forks source link

containerised firefox fails to start with virtual devices support configured #48

Closed SamuelDudley closed 9 months ago

SamuelDudley commented 9 months ago

Hi, Firstly, thanks for making this all open source and sorry for the support "issue". I've been looking for ways to run and expose GUI applications in containers and wolf seems really slick. I'm hoping to contribute to the project once I can get my "feet wet".

Issue: After following the quickstart and installing moonlight I was able to stream the example firefox browser, great! However, the mouse cursor interaction was quite strange, with it being "pinned" to the left of the container window. I then tried changing the settings with Ctrl+Alt+Shift+M and then when entering the application window the mouse cursor is immediately sent to the location on the screen of the host PC.

I then noted the virtual devices support section of the quickstart hoping that this might resolve the issue. After following the guide https://games-on-whales.github.io/wolf/stable/user/quickstart.html#_virtual_devices_support, the firefox container crashes almost immediately after launching.

When firefox was running (prior to configuring virtual devices support) the keyboard was working as expected.

Are there specific logs that would help you identify what might be going on here and how this might be resolved? I'm happy to help debug but I'm not sure where to start.

Host system OS is Ubuntu 22.04 Moonlight 4.3.1

Thanks, Sam

SamuelDudley commented 9 months ago

Well, I feel a bit stupid... when trying to recreate the issue for the 3rd time it all started working... Clearly the issue was on my end and my ability to follow instructions.

After setting up the virtual devices support and running

sudo udevadm control --reload-rules
sudo udevadm trigger

as per the guide the mouse input works wonderfully.