X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4b5e9df309971201353b010fa502b3a27cfd1969..c954637fab7c3f7add5bf9844d4d5497079d35df:/mkosi/kodi/mkosi.extra/etc/systemd/system/kodi-wayland.service diff --git a/mkosi/kodi/mkosi.extra/etc/systemd/system/kodi-wayland.service b/mkosi/kodi/mkosi.extra/etc/systemd/system/kodi-wayland.service index 3caa049..b455e60 100644 --- a/mkosi/kodi/mkosi.extra/etc/systemd/system/kodi-wayland.service +++ b/mkosi/kodi/mkosi.extra/etc/systemd/system/kodi-wayland.service @@ -7,13 +7,20 @@ Conflicts=getty@tty1.service [Service] User=kodi Group=kodi -Environment=XDG_RUNTIME_DIR=/tmp -EnvironmentFile=-/etc/conf.d/kodi-standalone -TTYPath=/dev/tty1 + +# 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 +Environment=XDG_RUNTIME_DIR=%t/kodi + ExecStart=/usr/bin/cage -- /usr/bin/kodi-standalone ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-wayland Restart=on-abort + +TTYPath=/dev/tty1 StandardInput=tty StandardOutput=journal