autostart

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package autostart registers/unregisters an app to launch on login. Desktop only: Windows uses the HKCU Run key, macOS a LaunchAgent plist, Linux an autostart .desktop file. Mobile/wasm report errors.ErrUnsupported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable(appName string) error

Disable removes the login entry for appName.

func Enable

func Enable(appName, exePath string) error

Enable registers the app (at exePath) to start on login under appName.

func IsEnabled

func IsEnabled(appName string) (bool, error)

IsEnabled reports whether a login entry exists for appName.

Types

This section is empty.

Jump to

Keyboard shortcuts

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