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

Run condition on folder change #876

Open
mhofman opened this issue Jan 18, 2022 · 0 comments
Open

Run condition on folder change #876

mhofman opened this issue Jan 18, 2022 · 0 comments

Comments

@mhofman
Copy link

mhofman commented Jan 18, 2022

Description of the issue

I understand that SyncthingNative is capable of doing a watch through inotify on shared folders, but that requires the engine to be running, which keeps the network connections going.

I've read the wiki's Info on battery optimization, and it seems the recommended path is to enable the"Sync every hour for 5 minutes" option.

What I'd like is for the Android wrapper to watch itself for changes to the folder shared (since it seems to keep a copy of that info outside the engine), start SyncthingNative after those changes have been detected (probably with a hysteresis similar to the engine), and shutdown after the sync has completed (engine idle for x minutes).

I'm usually interested to fully sync the changes, so the 5 minutes hard limit is kinda strange, like #419 (comment) mentions as well. We could keep a "run for max y minutes" option for people that want to enforce some limit, maybe coupled to a "only if on battery", or "only if on cellular" toggle?

Version Information

  • App Version: 1.18.6.0
  • Syncthing Version: v1.18.6
  • Android Version: Android 11
  • Device manufacturer: Google
  • Device model: Pixel 5
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

2 participants