spawn

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 14 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 spawn runs the shell commands the config names (click actions, power commands) and the apps the launcher starts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detached added in v0.2.0

func Detached(cmd *exec.Cmd, name string) error

Detached starts cmd with no stdio in a session and a systemd scope of its own, named for name, and reaps it in the background.

func Owned added in v0.2.0

func Owned(ctx context.Context, command string) *exec.Cmd

Owned is `sh -c command` bound to ctx as a whole: it runs in a process group of its own, and ctx's end signals that group, so the script's children stop with it. exec.CommandContext alone kills only sh, and a watch script's pipeline outlived every bar rebuild.

func Quiet

func Quiet(cmd string)

Quiet runs cmd through sh -c in the background and returns at once, a click waiting on neither the fork nor the session bus.

func ScopeName added in v0.2.0

func ScopeName(name string, pid int) string

ScopeName is the unit a launched process runs in: app-lys\x2dshell-<name>-<pid>.scope, name escaped as systemd-escape does.

func Scoped added in v0.2.0

func Scoped(cmd *exec.Cmd, name string) error

Scoped starts cmd in a session of its own and asks for its scope in the background, for the caller to wait on; the error is a failure to start.

Types

This section is empty.

Jump to

Keyboard shortcuts

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