Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
fix: also install and enable yafti in yafti module
Browse files Browse the repository at this point in the history
oops, forgot this one
there's currently no removing of the firstboot data, though,
but that doesn't affect people much ig
  • Loading branch information
xynydev committed Aug 13, 2023
1 parent 8e80937 commit 93cd25f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/yafti/yafti.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93cd25f

Please sign in to comment.