Skip to content
Snippets Groups Projects
Select Git revision
  • 3a58bfaad27bcd989ed4ec1a9fb9b488d1696562
  • master default
  • v1
  • btrfs-backup
4 results

kodi.service

Blame
  • kodi.service 899 B
    [Unit]
    Description=Kodi Media Center on %i
    After=systemd-user-sessions.service sound.target network-online.target xorg.service
    
    # Require the library to be mounted.
    After=srv-library.mount
    
    # D-Bus is necessary for contacting logind. Logind is required.
    Wants=dbus.socket
    After=dbus.socket
    
    Conflicts=getty@%i.service
    Before=graphical.target
    
    [Service]
    User=kodi
    PAMName=login
    SupplementaryGroups=audio
    SupplementaryGroups=cdrom
    Environment="DISPLAY=:0"
    ExecStart=flatpak run --device=all --unshare=network --filesystem=/etc/group --filesystem=/srv/library tv.kodi.Kodi --standalone --windowing=x11 -fs
    Type=simple
    Restart=always
    RestartSec=5
    KillMode=control-group
    
    # Fail to start if not controlling the tty.
    StandardError=journal
    
    # Log this user with utmp, letting it show up with commands 'w' and 'who'.
    UtmpIdentifier=%i
    UtmpMode=user
    
    [Install]
    WantedBy=graphical.target
    DefaultInstance=tty1