From eb4c1ac761df74190b0abcaf5c9bb142505871fd Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 26 Apr 2024 20:38:14 +0200 Subject: [PATCH] Update default CLI parameters of the launcher * Use command syntax and double-dashes to be in-line with what Syncthing's help text suggests * Drop the `--no-restart` parameter; I probably only added it after checking what flags the systemd-unit file specifies. However, the systemd-unit file specifies `--no-restart` only because restarts are handled by systemd in that case. For the launcher of Syncthing Tray it makes probably more sense to keep restarts enabled by default. --- syncthingwidgets/settings/settings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthingwidgets/settings/settings.h b/syncthingwidgets/settings/settings.h index 4a6604c..70ee7b2 100644 --- a/syncthingwidgets/settings/settings.h +++ b/syncthingwidgets/settings/settings.h @@ -91,7 +91,7 @@ struct SYNCTHINGWIDGETS_EXPORT Launcher { #else QStringLiteral("syncthing"); #endif - QString syncthingArgs = QStringLiteral("-no-browser -no-restart -logflags=3"); + QString syncthingArgs = QStringLiteral("serve --no-browser --logflags=3"); QHash tools; bool considerForReconnect = false; bool showButton = false;