X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ea4fba86679ac5f40772944051003df5c5ff1117..8f9fd4a20e702a3c74ffaa00de27c00fae917f70:/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 c94f3fc..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-x11 +ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-wayland Restart=on-abort + +TTYPath=/dev/tty1 StandardInput=tty StandardOutput=journal