autostart: Prefix units to prevent collisions with existing units

This commit is contained in:
2020-12-09 22:07:11 +01:00
parent 0b0549975c
commit 08c020dafd

View File

@@ -29,7 +29,7 @@ do_run() {
get_unit_name() { get_unit_name() {
name="$1" ; shift name="$1" ; shift
printf '%s' "${name}" printf 'user:%s' "${name}"
} }
run_raw() { run_raw() {
@@ -125,7 +125,7 @@ run gpg-agent gpg-agent --homedir "$HOME/.gnupg" --no-detach --daemon
run kwallet kwalletd --nofork run kwallet kwalletd --nofork
# a service called dunst already exists and conflicts # a service called dunst already exists and conflicts
run dunst_user dunst -config ~/.config/dunstrc run dunst dunst -config ~/.config/dunstrc
# disabled due to firefox flicker # disabled due to firefox flicker
# run compton compton --backend glx --vsync opengl --no-dock-shadow --no-dnd-shadow # run compton compton --backend glx --vsync opengl --no-dock-shadow --no-dnd-shadow
@@ -139,7 +139,7 @@ run nm-applet nm-applet
run pasystray pasystray run pasystray pasystray
# redshift unit already exists # redshift unit already exists
run redshift_user redshift-gtk -c ~/.config/redshift.conf run redshift redshift-gtk -c ~/.config/redshift.conf
if [[ "${MACHINE_HAS_KEEPASSX}" == "true" ]] ; then if [[ "${MACHINE_HAS_KEEPASSX}" == "true" ]] ; then
run keepassx keepassx --keyfile ~/.secret/main.key ~/.secret/main.kdbx run keepassx keepassx --keyfile ~/.secret/main.key ~/.secret/main.kdbx