Skip to content

Add command line option to set initial state of setLowPriority config option #8087

Closed

Description

@Bill-Stewart

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!

Activity

  1. added
    enhancement
    needs-triage
    on Dec 29, 2021
  2. calmh commented on Dec 30, 2021

    @calmh
    Member

    There are many config options, I don't think this one is special enough to deserve it's own command line flag.

  3. Bill-Stewart commented on Dec 30, 2021

    @Bill-Stewart
    Author

    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.)

  4. calmh commented on Dec 30, 2021

    @calmh
    Member

    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.

  5. Bill-Stewart commented on Dec 30, 2021

    @Bill-Stewart
    Author

    Ah - so if config.xml doesn't already exist, we can do a syncthing generate and then modify config.xml right afterwards. That will work; thanks!

  6. added
    frozen-due-to-age
    on Mar 10, 2023
  7. locked and limited conversation to collaborators on Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-ageneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions