]> git.rmz.io Git - dotfiles.git/blobdiff - mkosi/kodi/mkosi.extra/etc/systemd/system/kodi-wayland.service
vim: create new undo block before capitalising previous word
[dotfiles.git] / mkosi / kodi / mkosi.extra / etc / systemd / system / kodi-wayland.service
index c94f3fc2433675c66f6b4a98e8db1e9d2472752f..b455e60cc1e0a353d3e69cdb1ab74029786fa90c 100644 (file)
@@ -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