SDL prefers relying on udev events to discover and register new
joysticks. However inside the container, udev isn't running. We have
mounted /run/udev, but it seems that this is not sufficient.
As a workaround, tell SDL to prefer a fallback method of discovering new
joysticks.
[Service]
User=kodi
Group=kodi
+
+# It seems that udev events aren't propagated to sdl within nspawn. So udev hotplug doesn't work.
+# SDL offers alternative methods to discover new devices, inotify and polling, use one of those.
+Environment=SDL_JOYSTICK_DISABLE_UDEV=1
Environment=WINDOWING=wayland
RuntimeDirectory=kodi