diff --git a/README.md b/README.md index 3d8e664..3b1e4ec 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,9 @@ Simply [start/enable](https://wiki.archlinux.org/index.php/Systemd#Using_units) * libinput and cage (for running wayland) * 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 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). diff --git a/init/kodi-gbm.service b/init/kodi-gbm.service index dbcdf08..5b35866 100644 --- a/init/kodi-gbm.service +++ b/init/kodi-gbm.service @@ -7,6 +7,7 @@ Conflicts=getty@tty1.service [Service] User=kodi Group=kodi +EnvironmentFile=-/etc/conf.d/kodi-standalone SupplementaryGroups=input PAMName=login TTYPath=/dev/tty1 diff --git a/init/kodi-wayland.service b/init/kodi-wayland.service index 8df5503..101effe 100644 --- a/init/kodi-wayland.service +++ b/init/kodi-wayland.service @@ -7,6 +7,7 @@ Conflicts=getty@tty1.service [Service] User=kodi Group=kodi +EnvironmentFile=-/etc/conf.d/kodi-standalone PAMName=login TTYPath=/dev/tty1 Environment=WINDOWING=wayland diff --git a/init/kodi.service b/init/kodi.service index f90843c..7f8d4bb 100644 --- a/init/kodi.service +++ b/init/kodi.service @@ -7,6 +7,7 @@ Conflicts=getty@tty1.service [Service] User=kodi Group=kodi +EnvironmentFile=-/etc/conf.d/kodi-standalone PAMName=login TTYPath=/dev/tty1 Environment=WINDOWING=x11