From d939d4aa26d416740422c8c3a8ae84bbd68a7d2c Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Tue, 2 Jan 2024 23:03:10 +0100 Subject: [PATCH] fix: signal state uses idempotent state --- salt/signal/configure.sls | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/salt/signal/configure.sls b/salt/signal/configure.sls index a8b76dd..75efbed 100644 --- a/salt/signal/configure.sls +++ b/salt/signal/configure.sls @@ -9,14 +9,13 @@ SPDX-License-Identifier: AGPL-3.0-or-later include: - dotfiles.copy-x11 -"{{ slsdotpath }}-create-autostart-dir": - cmd.run: - - name: mkdir -p ~/.config/autostart - - runas: user - "{{ slsdotpath }}-desktop-autostart": - cmd.run: - - name: ln -sf /usr/share/applications/signal-desktop.desktop ~/.config/autostart/ - - runas: user + file.symlink: + - name: /home/user/.config/autostart/signal-desktop.desktop + - target: /usr/share/applications/signal-desktop.desktop + - user: user + - group: user + - force: True + - makedirs: True {% endif -%}