Skip to content

Changing the sync folder does not restart the file-transfer watcher #27

Description

@offbyonebit

Severity: medium
Type: bug
Location: clipsync/main.pyClipSyncApp._on_folder_changed() (~line 580)

Problem: When the user changes the sync folder, _on_folder_changed() stops and restarts ClipboardSync but leaves the old FileTransfer instance watching the old folder. Outgoing files still go to the new folder, but incoming files in the new folder are never observed, so received-file notifications stop working.

Suggested fix: Also stop the existing FileTransfer and create a new one watching the new folder before restarting the clipboard engine.


Filed from a full-source audit of the repo (2026-07-29). Reported by the audit but not independently confirmed - verify the cited code before acting on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditFound in the 2026-07 code auditbugSomething isn't workingseverity:mediumDegraded behaviour or edge case

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions