autoinstall/autostart-manage/sync_command.sh

15 lines
263 B
Bash
Raw Normal View History

2024-01-08 22:37:31 +00:00
#!/usr/bin/env bash
rm "$HOME/.config/systemd/user/autostart.target.wants/"*
autostart_units=()
while IFS='' read -r line
do
autostart_units+=("$line")
done < <(_list)
for unit in "${autostart_units[@]}"
do
_systemctl "$unit" add-wants autostart.target
done