-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for environment variables for data/config folders #243
Comments
Another alternative would be to use the environment variables mentioned by However, I guess I can add support for those substituions (or would accept a PR adding this feature). I suppose under Windows it would go though all environment variables and substitues |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as this is now implemented. The implementation uses https://pkg.go.dev/os#ExpandEnv under the hood so the syntax is EDIT: I've just tested it under Windows and it works (but only with |
Relevant components
syncthingctl
)libsyncthing
)Is your feature request specific to a certain platform/environment? Please specify.
Both for Windows and Linux.
Is your feature request related to a problem? Please describe.
In the
Syncthing Tray -> Settings -> Startup -> Syncthing launcher -> Config directory/Data directory
support for environment variables is needed. Such as%LocalAppData%
in Windows.Describe the solution you'd like
When writing something like
%LocalAppData%/Syncthing
, the program interprets it not as%LocalAppData%/Syncthing
to a folder in the local directory, but actually follows the path specified in the environment variable.Describe alternatives you've considered
I write the full path to the
AppData/local
folder, which makes it difficult to port the program (for example, for a USB stick), or leave it in the program folder (./data
).The text was updated successfully, but these errors were encountered: