mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-12 15:43:27 +00:00
cc8c6c628f
Only set DISPLAY or WAYLAND_DISPLAY if actually running under x11/wayland. This fixes latest kodi gbm refusing to start because it thinks a window manager is active. Also set the Nvidia-specific __GL_YIELD only when Nvidia drivers are actually used and drop SDL_MOUSE_RELATIVE - kodi stopped using SDL a long time ago. Signed-off-by: Matthias Reichl <hias@horus.com>
23 lines
583 B
Desktop File
23 lines
583 B
Desktop File
[Unit]
|
|
Description=Kodi Media Center
|
|
After=network-online.target graphical.target
|
|
Requires=graphical.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
EnvironmentFile=/usr/lib/kodi/kodi.conf
|
|
EnvironmentFile=-/run/libreelec/kodi.conf
|
|
EnvironmentFile=-/run/libreelec/debug/kodi.conf
|
|
ExecStartPre=-/usr/lib/kodi/kodi-config
|
|
ExecStart=/usr/lib/kodi/kodi.sh --standalone -fs $KODI_ARGS $KODI_DEBUG
|
|
ExecStop=/bin/kill -TERM $MAINPID
|
|
ExecStopPost=-/usr/lib/kodi/kodi-safe-mode
|
|
TimeoutStopSec=30
|
|
Restart=always
|
|
RestartSec=2
|
|
StartLimitInterval=0
|
|
LimitNOFILE=16384
|
|
|
|
[Install]
|
|
WantedBy=kodi.target
|