Disable background synchronisation

This commit is contained in:
2025-11-18 13:40:29 +01:00
parent b933b1900d
commit 8d75bbd5f8
+20 -20
View File
@@ -200,27 +200,27 @@ chmod +x "$WRAPPER_SCRIPT"
### ✅ Create systemd service and timer ### ✅ Create systemd service and timer
cat > "$HOME/.config/systemd/user/darktable-sync.service" <<EOF # cat > "$HOME/.config/systemd/user/darktable-sync.service" <<EOF
[Unit] # [Unit]
Description=Darktable Sync # Description=Darktable Sync
[Service] # [Service]
Type=oneshot # Type=oneshot
ExecStart=$SYNC_SCRIPT # ExecStart=$SYNC_SCRIPT
EOF # EOF
cat > "$HOME/.config/systemd/user/darktable-sync.timer" <<EOF # cat > "$HOME/.config/systemd/user/darktable-sync.timer" <<EOF
[Unit] # [Unit]
Description=Run Darktable sync every 5 minutes # Description=Run Darktable sync every 5 minutes
[Timer] # [Timer]
OnBootSec=2min # OnBootSec=2min
OnUnitActiveSec=5min # OnUnitActiveSec=5min
Unit=darktable-sync.service # Unit=darktable-sync.service
[Install] # [Install]
WantedBy=default.target # WantedBy=default.target
EOF # EOF
### ✅ Create desktop shortcut ### ✅ Create desktop shortcut
cat > "$DESKTOP_SHORTCUT" <<EOF cat > "$DESKTOP_SHORTCUT" <<EOF
@@ -254,12 +254,12 @@ chmod +x "$SYNC_ONLY_SHORTCUT"
### ▶️ Enable systemd timer ### ▶️ Enable systemd timer
systemctl --user daemon-reexec # systemctl --user daemon-reexec
systemctl --user enable --now darktable-sync.timer # systemctl --user enable --now darktable-sync.timer
### ✅ Summary ### ✅ Summary
echo "" echo ""
echo "✅ Setup complete." echo "✅ Setup complete."
echo "" echo ""
echo "🖱 You can start Darktable via 'Darktable with Sync' in your application menu." echo "🖱 You can start Darktable via 'Darktable with Sync' in your application menu."
echo "🕒 Sync will run every 5 minutes automatically when the Server is online." # echo "🕒 Sync will run every 5 minutes automatically when the Server is online."