Skip to content

Dropbox sync creates constant "You deleted lock.json" notifications on every browser startup #2069

Open

Description

@SturmB

Environment

  • Stylus version: 2.3.19
  • Browser: Zen Browser (Firefox-based) on Linux
  • Sync provider: Dropbox

Problem

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:

  1. 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.
  2. 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.
  3. 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

  1. eight04 commented on Apr 14, 2026

    @eight04
    Collaborator

    1. Keep the lock file persistent and just update its expire timestamp

    This can work. But it will cost another request to fetch the revision of the lock file before updating the timestamp.

    2. Use a hidden/dotfile name (e.g. .lock.json)

    This can work. But it will be a breaking change.

    3. Use Dropbox's lock_file API

    This won't work. According to the doc: https://www.dropbox.com/developers/documentation/http/documentation#files-lock_file_batch

    This endpoint does not support apps with the app folder permission.

    BTW here is the request to add a mute option 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

  2. tophf commented on Apr 14, 2026

    @tophf
    Member

    will cost another request

    given that it's only once per sync batch, seems acceptable.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions