You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add command line option to set initial state of setLowPriority config option #8087
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
It looks like when Syncthing generates its initial config.xml file it defaults to <setLowPriority>true</setLowPriority>. It would be helpful if we could have a command-line option (e.g., --no-process-priority) to set an initial state of false so the launching process can decide for itself. Thanks!
So I think there is a valid use case for this. An installer could give the user the option to decide on a process priority, but right now it will be disregarded by default. If we have a command-line option (or an environment variable) for Syncthing not to set priority by default, then the user's preference isn't ignored. As it stands now, the user must manually edit config.xml after running Syncthing at least one time and then stopping it. (An installer can't set the preference before starting Syncthing for the first time, because config.xml doesn't exist yet.)
An installer can do what it needs to, including generating a base config.xml. You're essentially arguing for every config default being command line configurable, which I don't think scales or is a good idea in general.
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
Activity
calmh commentedon Dec 30, 2021
There are many config options, I don't think this one is special enough to deserve it's own command line flag.
Bill-Stewart commentedon Dec 30, 2021
So I think there is a valid use case for this. An installer could give the user the option to decide on a process priority, but right now it will be disregarded by default. If we have a command-line option (or an environment variable) for Syncthing not to set priority by default, then the user's preference isn't ignored. As it stands now, the user must manually edit
config.xmlafter running Syncthing at least one time and then stopping it. (An installer can't set the preference before starting Syncthing for the first time, becauseconfig.xmldoesn't exist yet.)calmh commentedon Dec 30, 2021
An installer can do what it needs to, including generating a base config.xml. You're essentially arguing for every config default being command line configurable, which I don't think scales or is a good idea in general.
Bill-Stewart commentedon Dec 30, 2021
Ah - so if
config.xmldoesn't already exist, we can do asyncthing generateand then modifyconfig.xmlright afterwards. That will work; thanks!