14 lines
263 B
Bash
14 lines
263 B
Bash
#!/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
|