singleinstance

command
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: BSD-3-Clause Imports: 9 Imported by: ? 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

Command singleinstance is the live-verify probe for single-instance mode with argument forwarding (#509 / bellui.SingleInstanceApp).

go run ./hack/singleinstance            # first launch -> becomes primary, opens a window
go run ./hack/singleinstance a.txt --x  # while the primary runs -> forwards [a.txt --x] and exits

The running primary appends every forwarded argument list to its window and to $TMPDIR/bellui-si-probe.log, proving that "open with MyApp <file>" reaches the already-running instance instead of spawning a second one. This is the desktop building block behind OS file-association / URL-scheme handling (#510). Set BELLUI_SI_PROBE_QUIT=1 to make the primary quit after the first forwarded launch (used by the automated two-process check).

Jump to

Keyboard shortcuts

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