apps

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 4 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 apps lists the desktop programs the dashboard can open in the browser. Each runs alone on its own virtual X display (TigerVNC's Xvnc, on localhost only), which the dashboard relays to noVNC in the browser: the way DigiPi does it, one app per display.

Index

Constants

View Source
const DesktopPort = 5899

DesktopPort is where hamstack's own wayvnc shares the computer's desktop to the dashboard (localhost only).

View Source
const FirstDisplay = 20

FirstDisplay is the X display number of the first program; each gets its own, and its VNC port is 5900 plus that number.

Variables

View Source
var All = []App{
	{"wsjtx", "WSJT-X", "wsjtx-improved", true},
	{"js8call", "JS8Call", "js8call", true},
	{"fldigi", "Fldigi", "fldigi", true},
	{"flmsg", "FLMsg", "flmsg", false},
	{"flamp", "FLAmp", "flamp", false},
	{"xastir", "Xastir", "xastir", false},
	{"flrig", "FLRig", "flrig", false},
	{"console", "Hamstack console", "xterm", false},
}

All are the programs the dashboard knows, in the order it lists them. The display numbers follow this order, so new programs go at the end.

Functions

func VNCServer

func VNCServer() (string, error)

VNCServer resolves the executable names used by TigerVNC distributions.

func ValidName

func ValidName(s string) bool

ValidName reports whether s could be a program name (letters, digits and dashes), so a URL cannot smuggle anything else into a unit name.

Types

type App

type App struct {
	Name    string // used in URLs and unit names: vnc@NAME
	Title   string
	Package string // the catalog program that provides it
	Radio   bool   // uses the radio's sound card: the HF modem is stopped while it is open
}

App is one desktop program.

func Find

func Find(name string) (App, bool)

Find returns the program with that name.

func (App) Binary

func (a App) Binary() string

Binary is the executable that starts it.

func (App) Display

func (a App) Display() int

Display is the program's X display number.

func (App) Path

func (a App) Path() string

Path finds the program, or returns "" when it is not installed.

func (App) Port

func (a App) Port() int

Port is the TCP port of the program's VNC server, on localhost.

Jump to

Keyboard shortcuts

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