From e6c42f1ba912ba87a8350112d7af4a905c01fa34 Mon Sep 17 00:00:00 2001 From: Sassan Haradji Date: Wed, 8 May 2024 20:23:27 +0400 Subject: [PATCH] build(bootstrap): set `UBO_SERVICES_PATH` to `/home/{{USERNAME}}/ubo_services/` in the service file so that user can easily add their custom services --- CHANGELOG.md | 2 ++ poetry.lock | 8 ++++---- pyproject.toml | 8 ++++++++ ubo_app/system/services/app.service | 1 + 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a27fe71..b5fb379f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ load before wifi service by changing its priority #88 - fix(core): use latest version of headless-kivy-pi to avoid the static noise shown before the first frame is ready to be rendered #86 +- build(bootstrap): set `UBO_SERVICES_PATH` to `/home/{{USERNAME}}/ubo_services/` + in the service file so that user can easily add their custom services ## Version 0.14.0 diff --git a/poetry.lock b/poetry.lock index 8e062262..d2b5f6f8 100644 --- a/poetry.lock +++ b/poetry.lock @@ -781,13 +781,13 @@ files = [ [[package]] name = "headless-kivy-pi" -version = "0.7.3" +version = "0.7.4" description = "Headless renderer for Kivy framework on Raspberry Pi" optional = true python-versions = "<4.0,>=3.11" files = [ - {file = "headless_kivy_pi-0.7.3-py3-none-any.whl", hash = "sha256:032366d7c05f416101ff679677a17b923af4159486fe1520fc08c166b2348a0f"}, - {file = "headless_kivy_pi-0.7.3.tar.gz", hash = "sha256:f508acd227049028eecce2dc611be7be1e6f1c631ac4a9c48c47477ac92cb82a"}, + {file = "headless_kivy_pi-0.7.4-py3-none-any.whl", hash = "sha256:f04b08dc43e61a78b74246adfe9ef60775e097f7ecb3d5f72e66daa341e1dced"}, + {file = "headless_kivy_pi-0.7.4.tar.gz", hash = "sha256:9a50e83fd812ee6a590ebf1c85d52dfa4d469c36183b52e1de59a6af51258437"}, ] [package.dependencies] @@ -2193,4 +2193,4 @@ dev = ["ubo-gui", "ubo-gui"] [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "8ef2753457e3d426d934c2032c180049d8b36052bcf52c604954a692bc5ac031" +content-hash = "d26ee0cbb604ef821d6e3acd692836718945588a17198091d30f1aa0e6ba2213" diff --git a/pyproject.toml b/pyproject.toml index 88379447..a13bbdc0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,14 @@ ubo-gui = [ "dev", ] }, ] +headless-kivy-pi = [ + { version = "^0.7.4", markers = "extra=='default'", extras = [ + 'default', + ] }, + { version = "^0.7.4", markers = "extra=='dev'", extras = [ + 'dev', + ] }, +] python-redux = "^0.15.2" pyzbar = "^0.1.9" sdbus-networkmanager = { version = "^2.0.0", markers = "platform_machine=='aarch64'" } diff --git a/ubo_app/system/services/app.service b/ubo_app/system/services/app.service index 972bf5bd..031c46b3 100644 --- a/ubo_app/system/services/app.service +++ b/ubo_app/system/services/app.service @@ -4,6 +4,7 @@ Wants=dbus.service pipewire-pulse.service [Service] Type=simple +Environment="UBO_SERVICES_PATH=/home/{{USERNAME}}/ubo_services/" ExecStart={{INSTALLATION_PATH}}/env/bin/ubo WorkingDirectory={{INSTALLATION_PATH}} StandardOutput=inherit