Merged
Conversation
If SYNCTHING_CONFIG_FILE is not set and default config not found, look
for config.xml in localstate directory:
SYNCTHING_DEFAULT_STATEDIR="$HOME/.local/state/syncthing"
At least in my environment (manjaro linux) this is where a working
config.xml is located by default.
serl
approved these changes
Aug 15, 2025
Owner
serl
left a comment
There was a problem hiding this comment.
Hello, thanks for your contribution!
I did a little edit to make sure that SYNCTHING_DEFAULT_CONFIG_FILE is never empty, as that might happen with your diff.
I mean, for sure if no config file exist this would break, but I'm willing not to change how it breaks ![]()
Anyways, if you could try if it still works as expected with my edit, that would be fantastic 🙂
Thanks again!
Contributor
Author
|
Still works for me as expected, thanks! And it's cleaner without an extra variable |
Owner
|
Perfect, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If
SYNCTHING_CONFIG_FILEis not set and default config not found, look forconfig.xmlin localstate directory:At least in my environment (manjaro linux) this is where a working
config.xmlis located by default.