Core Library0.xAPI reference

Choose documentation 1

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

class libtmux-lua

StartServerOptions

Options for libtmux.Runtime:start_server().

Source and package
Qualified name
libtmux.StartServerOptions
Module
libtmux
Package
libtmux
Source
lua/libtmux/_internal/server.lua
class libtmux.StartServerOptions

Description

binary is the only required field. The server lives in a fresh directory under root, with its socket inside, so root plus about 45 bytes must fit a socket path (sun_path: 107 bytes on Linux, 103 on macOS and the BSDs); a longer root fails with invalid_endpoint before anything is created. The directory holds the daemon's TMUX_TMPDIR, so a tmux client that names no socket cannot reach another server from inside it.

The daemon inherits the caller's environment less TMUX, TMUX_PANE and every LIBTMUX_SOCKET* variable, plus environment. environment cannot set those names or TMUX_TMPDIR. The daemon runs with exit-empty off, so it stays up with no session.

Members5 members

Common operations2

  • config: string? Absolute configuration path. Defaults to /dev/null, which loads none.
  • root: string? Absolute directory that holds the private one. Defaults to the system temporary directory, or /tmp when that is too long for a socket path.

Other members3

Esc
Search in

Type to search.

Reference previewOpen reference