Hearth documentation

Desktop sync

A sync app keeps a folder on your computer and your files on Hearth the same: what you change on one side appears on the other.

Not released yet: Hearth's own desktop sync app for Windows, macOS and Linux. Its sync engine is being built and does not sync real folders yet. Until it is released, use the Nextcloud desktop app, which works with Hearth unchanged, or connect your computer's file manager to Hearth over WebDAV.

The Nextcloud desktop app

  1. Install the Nextcloud desktop app from nextcloud.com for your system.
  2. When it asks for a server address, type your Hearth address, for example https://hearth.example.org.
  3. Your browser opens a page titled "Connect" followed by the app's name. Sign in if asked (with your second step, if you use one), then select Grant access.
  4. The page says Connected. Go back to the app and choose which folders to sync and where to keep them on your computer.

The app gets an app password of its own, listed in Settings, App passwords. Revoke it there to disconnect that computer.

Large files are sent in chunks, and favourites and file locks work as they do in Nextcloud.

When a file changed in two places

If a file was changed on two devices at once, Hearth keeps the first change that arrives and refuses the second, so nothing is overwritten unseen. The Nextcloud app then keeps your version as a conflict copy next to the file. Open both, keep what you want and delete the copy.

What a sync replaces or deletes on Hearth is kept: an overwritten file in the file's versions, a deleted one in the trash. See Files.

Your file manager over WebDAV

You can open Hearth as a network drive without installing anything. WebDAV needs an app password; your account password is not accepted there.

  1. In Hearth, go to Settings, App passwords, type a name such as "Laptop" and select Create. Keep the window open: the password is shown only once.

  2. Connect with this address, your username and the app password:

    https://hearth.example.org/remote.php/dav/files/<username>/
    
    • Windows: in File Explorer, right-click This PC, choose Map network drive, then Connect to a Web site that you can use to store your documents and pictures, and paste the address.
    • macOS: in the Finder, choose Go, Connect to Server, and paste the address.
    • Linux (GNOME Files): choose Other Locations and type the address with davs:// instead of https://.

Tools such as rclone work with the same address and an app password.

A network drive reads and writes over the network each time; it keeps no copy on your computer.

Connecting a device to Hearth

Hearth's own sync apps connect to your account through the Connect a device page in your browser, never by asking for your password. The Hearth phone app uses it today when you connect it for sync, and the desktop app will use it too.

  1. Start the connection in the app. Your browser opens the Connect a device page; sign in if asked.
  2. Check the device's name and system, From (where the request came from) and Requested (when). If the page says "This request came from another network than this browser", make sure it really is your own device.
  3. Select Allow, or Cancel if you did not start this.

The page then says "Connected. You can close this page." A request lasts two minutes and can be allowed only once. Every new device is also announced in your notifications.

A device without a screen of its own (a server, for example) shows a short code and an address instead. Open the address on another computer, type the code under Code on the device and select Connect. After five wrong codes the device is refused and has to start again.

Seeing and removing devices

Settings, Devices lists every device connected for sync, with its system and when and from where it was last seen. Select Remove next to one to disconnect it at once.

Signing out everywhere, wiping your devices (Settings, Sessions) and an administrator resetting your password also disconnect every device. Changing your own password does not.

Guests cannot sync.