From 93cd25fe017ffa5f5bc7ed846ff2bee544669510 Mon Sep 17 00:00:00 2001 From: ER Date: Sun, 13 Aug 2023 17:24:20 +0300 Subject: [PATCH] fix: also install and enable yafti in yafti module oops, forgot this one there's currently no removing of the firstboot data, though, but that doesn't affect people much ig --- modules/yafti/yafti.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/yafti/yafti.sh b/modules/yafti/yafti.sh index b62343d8f2..6659355dff 100644 --- a/modules/yafti/yafti.sh +++ b/modules/yafti/yafti.sh @@ -3,7 +3,15 @@ # Tell build process to exit if there are any errors. set -oue pipefail -YAFTI_FILE="/usr/share/ublue-os/firstboot/yafti.yml" +FIRSTBOOT_DATA="/usr/share/ublue-os/firstboot" +FIRSTBOOT_LINK="/usr/etc/profile.d/ublue-firstboot.sh" +echo "Installing and enabling yafti" +pip install --prefix=/usr yafti +# Create symlink to our profile script, which creates the per-user "autorun yafti" links. +mkdir -p "$(dirname "${FIRSTBOOT_LINK}")" +ln -s "${FIRSTBOOT_DATA}/launcher/login-profile.sh" "${FIRSTBOOT_LINK}" + +YAFTI_FILE="$FIRSTBOOT_DATA/yafti.yml" get_yaml_array FLATPAKS '.custom-flatpaks[]' "$1" if [[ ${#FLATPAKS[@]} -gt 0 ]]; then