Skip to content

manage mutagen daemon lifecycle for coder-desktop-windows #380

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

Closed
spikecurtis opened this issue Feb 18, 2025 · 1 comment · Fixed by coder/coder-desktop-windows#58
Closed
Assignees

Comments

@spikecurtis
Copy link

Daemon Lifecycle

  • We’ll embed the daemon in Coder Desktop as described in the [mutagen docs.](https://mutagen.io/documentation/introduction/daemon/)
    • We’ll use a data directory under the main Coder Desktop data directory to ensure our instance of mutagen doesn’t interfere with other instances on the system (i.e. directly installed by the end user).
  • We’ll use Mutagen’s existing autostart capability if possible, and avoid implementing our own autostart.
    • Technical risk: Support is listed as experimental. If we find problems we should be prepared to roll our own lifecycle management.
    • call mutagen daemon register when first file sync is created
    • call mutagen daemon unregister when last file sync is deleted, or file sync disabled entirely.
@ethanndickson
Copy link
Member

Crossposting for posterity: #381 (comment)

spikecurtis added a commit to coder/coder-desktop-windows that referenced this issue Mar 17, 2025
fixes coder/internal#380

Adds MutagenController service, which manages the lifecycle of the `mutagen` daemon and exposes methods to query and modify sync sessions.

Sync sessions themselves are a placeholder which will need to be filled out and plumbed thru to the actual API. This just handles daemon lifecycle for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants