support passing environment vars to service
This commit is contained in:
parent
e6a3e23ff6
commit
2c5da1a438
@ -36,6 +36,9 @@ Simply [start/enable](https://wiki.archlinux.org/index.php/Systemd#Using_units)
|
|||||||
* libinput and cage (for running wayland)
|
* libinput and cage (for running wayland)
|
||||||
* libinput (for running gbm)
|
* libinput (for running gbm)
|
||||||
|
|
||||||
|
## Passing environment variables to the service
|
||||||
|
Should the need arise, one can pass environment variables to the service by creating `/etc/conf.d/kodi-standalone` and populating it with the needed variables.
|
||||||
|
|
||||||
## Acknowledgments
|
## Acknowledgments
|
||||||
Much of the credit for this service goes to the Arch Linux maintainers of the official kodi package. Note that they removed it upon the [1.16-1 release of Xorg](https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/xbmc&id=9763c6d32678f3a3f45c195bfae92eee209d504f).
|
Much of the credit for this service goes to the Arch Linux maintainers of the official kodi package. Note that they removed it upon the [1.16-1 release of Xorg](https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/xbmc&id=9763c6d32678f3a3f45c195bfae92eee209d504f).
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ Conflicts=getty@tty1.service
|
|||||||
[Service]
|
[Service]
|
||||||
User=kodi
|
User=kodi
|
||||||
Group=kodi
|
Group=kodi
|
||||||
|
EnvironmentFile=-/etc/conf.d/kodi-standalone
|
||||||
SupplementaryGroups=input
|
SupplementaryGroups=input
|
||||||
PAMName=login
|
PAMName=login
|
||||||
TTYPath=/dev/tty1
|
TTYPath=/dev/tty1
|
||||||
|
@ -7,6 +7,7 @@ Conflicts=getty@tty1.service
|
|||||||
[Service]
|
[Service]
|
||||||
User=kodi
|
User=kodi
|
||||||
Group=kodi
|
Group=kodi
|
||||||
|
EnvironmentFile=-/etc/conf.d/kodi-standalone
|
||||||
PAMName=login
|
PAMName=login
|
||||||
TTYPath=/dev/tty1
|
TTYPath=/dev/tty1
|
||||||
Environment=WINDOWING=wayland
|
Environment=WINDOWING=wayland
|
||||||
|
@ -7,6 +7,7 @@ Conflicts=getty@tty1.service
|
|||||||
[Service]
|
[Service]
|
||||||
User=kodi
|
User=kodi
|
||||||
Group=kodi
|
Group=kodi
|
||||||
|
EnvironmentFile=-/etc/conf.d/kodi-standalone
|
||||||
PAMName=login
|
PAMName=login
|
||||||
TTYPath=/dev/tty1
|
TTYPath=/dev/tty1
|
||||||
Environment=WINDOWING=x11
|
Environment=WINDOWING=x11
|
||||||
|
Loading…
Reference in New Issue
Block a user