You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dropbox sync creates constant "You deleted lock.json" notifications on every browser startup #2069
Every time I start my browser, I receive a desktop notification from Dropbox saying "You deleted lock.json", referring to ~/Dropbox/Apps/Stylus - Userstyles Manager/lock.json.
Looking at Dropbox's sync history, this file is created and deleted on virtually every sync cycle — 20+ deletions over the past couple of weeks on my account alone. Each deletion generates a notification I have to dismiss.
The file is a tiny lock token ({"expire":<timestamp>}), so its purpose is clear — concurrency control during sync. The issue is that its create/delete lifecycle is visible to Dropbox's notification system, which treats each deletion as a user-facing event.
Suggested fixes
A few options the maintainers might consider:
Keep the lock file persistent and just update its expire timestamp in place, rather than deleting and recreating it. Dropbox won't notify on modifications to an existing file — only deletions.
Use a hidden/dotfile name (e.g. .lock.json) — Dropbox still syncs it but most users configure notifications to ignore changes that "look like" metadata, and some tooling hides these by default.
Use Dropbox's lock_file API (via the Dropbox SDK) instead of a sentinel file, if that's workable for the extension.
Option 1 seems like the cheapest fix and would silence the notification for every user syncing to Dropbox.
Workaround for other users
Until this is fixed, affected users can mute Dropbox desktop notifications globally, or exclude Apps/Stylus - Userstyles Manager from Selective Sync (which breaks Stylus's own sync on that device).
Activity
eight04 commentedon Apr 14, 2026
This can work. But it will cost another request to fetch the revision of the lock file before updating the timestamp.
This can work. But it will be a breaking change.
This won't work. According to the doc: https://www.dropbox.com/developers/documentation/http/documentation#files-lock_file_batch
BTW here is the request to add a
muteoption to the delete API in 2016:https://community.dropbox.com/en/discussion/comment/265038#Comment_265038?utm_source=community-search&utm_medium=organic-search&utm_term=api+delete+mute
tophf commentedon Apr 14, 2026
given that it's only once per sync batch, seems acceptable.