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

Trigger sync from shell #999

Closed
doak opened this issue Oct 24, 2022 · 2 comments
Closed

Trigger sync from shell #999

doak opened this issue Oct 24, 2022 · 2 comments

Comments

@doak
Copy link

doak commented Oct 24, 2022

I was used to trigger sync by a Bash script (Termux) with am startservice -n com.orgzly/com.orgzly.android.sync.SyncService. It seems this service does not exist anymore since v1.8.9.

Is there another way to trigger the sync from a shell?

Background:
The script watches/waits for files changes (the org-files gets synced by syncthing) and triggers Orgzly to sync in case of an update.

@nevenz
Copy link
Member

nevenz commented Oct 28, 2022

Use com.orgzly.android.ActionReceiver instead and send a broadcast. E.g.:

adb+ shell am broadcast -a com.orgzly.intent.action.SYNC_START com.orgzly/.android.ActionReceiver

@doak
Copy link
Author

doak commented Nov 10, 2022

@nevenz, thanks a lot!

@doak doak closed this as completed Nov 10, 2022
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