loginservice

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package loginservice registers a user-level service so sync sessions resume at login.

This is opt-in and nothing is installed otherwise. Nothing resumes automatically after a reboot by default: a session that silently came back and started reconciling files an engineer had forgotten about is worse than one reported as not running.

Index

Constants

View Source
const Label = "io.agyn.sync"

Label names the service on both platforms. Reverse-DNS is the macOS convention and harmless on Linux.

Variables

View Source
var ErrUnsupported = errors.New("resume-at-login is not available on this platform")

ErrUnsupported reports a platform with no user-level service manager we target. The CLI ships darwin and linux only.

Functions

func Install

func Install(executable string) (string, error)

Install registers the service. It is idempotent: installing twice leaves one registration.

func Status

func Status() (string, bool)

Status reports where the registration lives, or empty when none is installed.

func Uninstall

func Uninstall() (string, error)

Uninstall removes the registration. A missing one is not an error: the command's job is to leave nothing installed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL