Skip to content
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

Add "reset deltas" functionality #87

Open
mstgrv opened this issue Jan 7, 2019 · 5 comments
Open

Add "reset deltas" functionality #87

mstgrv opened this issue Jan 7, 2019 · 5 comments

Comments

@mstgrv
Copy link

mstgrv commented Jan 7, 2019

Is it possible to add "reset deltas" (https://docs.syncthing.net/users/syncthing.html#cmdoption-reset-deltas) to the app somehow?

Reset deltas is a useful feature for troubleshooting various scenarios with syncing devices properly, it would be handy to have this implemented in this app in some way so that going to the command line isn't necessary. Perhaps a button in Preferences, so it's somewhat hidden?

@xor-gate
Copy link
Member

Its indeed a nice feature to have, the GUI is currently very primitive and need some love with some more functionality (e.g environment variables).

@DocMAX
Copy link

DocMAX commented Aug 8, 2022

Second that and can we do it at runtime without restart?

@RayBB
Copy link

RayBB commented Feb 2, 2023

Is there any way to reset deltas right now using this application?
Even using the CLI?

@xor-gate
Copy link
Member

xor-gate commented Feb 2, 2023

Could be with the following (not tested)

@RayBB
Copy link

RayBB commented Feb 2, 2023

Thanks for your input, as I read the docs more closely I realized there was a way to do this with default arguments.

Here's the script that works for me.

# Enable reset-deltas 
defaults write com.github.xor-gate.syncthing-macosx Arguments '--reset-deltas'

# quit syncthing
osascript -e 'tell application "syncthing" to quit'

# start syncthing
open -a "syncthing"

# sleep 5 seconds to allow syncthing to start
sleep 5

# remove the default arguments for next start
defaults delete com.github.xor-gate.syncthing-macosx Arguments

Thanks again for your help and maintaining this awesome project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants