x86_64: update for kodi.bin[1]

1. 50afcc355a (diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a)
This commit is contained in:
graysky 2021-07-13 17:40:05 -04:00
parent 546b6863a4
commit 33dc37310f
4 changed files with 5 additions and 20 deletions

View File

@ -20,24 +20,9 @@ Users of other distros can just run `make install` as the root user. Then, as t
Note that the kodi user's home directory is `/var/lib/kodi/` in this example, NOT `/home/kodi/` like a regular user. Note that the kodi user's home directory is `/var/lib/kodi/` in this example, NOT `/home/kodi/` like a regular user.
#### Notes for users of non-Arch Linux distros #### Notes for users of non-Arch Linux distros
1. Arch Linux ships three discrete Kodi packages, each providing a different Kodi executable (`kodi-x11`, `kodi-wayland`, and `kodi-gbm`) but other distros may not do this and may ship a combined Kodi binary (called `kodi.bin`). If your distro ships `kodi.bin` rather than the discrete executables you must adjust the name of the Kodi executable in the `ExecStop=` line accordingly. Failure to do so will result in Kodi getting killed before it can perform exit tasks and can result in data loss to your profile. 1. Users of Ubuntu ≥20.0 will need to copy the contents of [sysusers.conf](https://github.com/graysky2/kodi-standalone-service/blob/master/x86/init/sysusers.conf) to `/etc/sysusers.d/kodi.conf` and uncomment the line adding kodi user to the `render` group.
Do this modification using a [systemd drop-in](https://wiki.archlinux.org/title/Systemd#Drop-in_files). 2. Users of Ubuntu wishing the kodi user to access devices on `/dev/ttyxxxx`, will need to copy the contents of [sysusers.conf](https://github.com/graysky2/kodi-standalone-service/blob/master/x86/init/sysusers.conf) to `/etc/sysusers.d/kodi.conf` and uncomment the line adding the kodi user to the `dialout` group.
Example:
```
# systemctl edit kodi-x11
<< you are creating a drop-in >>
[Service]
ExecStop=
ExecStop=/usr/bin/killall --user kodi --exact --wait kodi.bin
```
2. Users of Ubuntu ≥20.0 will need to copy the contents of [sysusers.conf](https://github.com/graysky2/kodi-standalone-service/blob/master/x86/init/sysusers.conf) to `/etc/sysusers.d/kodi.conf` and uncomment the line adding kodi user to the `render` group.
3. Users of Ubuntu wishing the kodi user to access devices on `/dev/ttyxxxx`, will need to copy the contents of [sysusers.conf](https://github.com/graysky2/kodi-standalone-service/blob/master/x86/init/sysusers.conf) to `/etc/sysusers.d/kodi.conf` and uncomment the line adding the kodi user to the `dialout` group.
## Usage ## Usage
Simply [start/enable](https://wiki.archlinux.org/index.php/Systemd#Using_units) the requisite service. Simply [start/enable](https://wiki.archlinux.org/index.php/Systemd#Using_units) the requisite service.

View File

@ -13,7 +13,7 @@ PAMName=login
TTYPath=/dev/tty1 TTYPath=/dev/tty1
Environment=WINDOWING=gbm Environment=WINDOWING=gbm
ExecStart=/usr/lib/kodi/kodi-gbm ExecStart=/usr/lib/kodi/kodi-gbm
ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-gbm ExecStop=/usr/bin/killall --user kodi --exact --wait kodi.bin
Restart=on-abort Restart=on-abort
StandardInput=tty StandardInput=tty
StandardOutput=journal StandardOutput=journal

View File

@ -14,7 +14,7 @@ PAMName=login
TTYPath=/dev/tty1 TTYPath=/dev/tty1
Environment=WINDOWING=wayland Environment=WINDOWING=wayland
ExecStart=/usr/bin/cage -- /usr/bin/kodi-standalone ExecStart=/usr/bin/cage -- /usr/bin/kodi-standalone
ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-wayland ExecStop=/usr/bin/killall --user kodi --exact --wait kodi.bin
Restart=on-abort Restart=on-abort
StandardInput=tty StandardInput=tty
StandardOutput=journal StandardOutput=journal

View File

@ -12,7 +12,7 @@ PAMName=login
TTYPath=/dev/tty1 TTYPath=/dev/tty1
Environment=WINDOWING=x11 Environment=WINDOWING=x11
ExecStart=/usr/bin/xinit /usr/bin/kodi-standalone -- :0 -quiet -nolisten tcp vt1 ExecStart=/usr/bin/xinit /usr/bin/kodi-standalone -- :0 -quiet -nolisten tcp vt1
ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-x11 ExecStop=/usr/bin/killall --user kodi --exact --wait kodi.bin
Restart=on-abort Restart=on-abort
StandardInput=tty StandardInput=tty
StandardOutput=journal StandardOutput=journal