On this page
libtmux::Server::from_env
- Module
- libtmux
- Declared in
- Server
- Package
- libtmux-cxx
- Source
- include/libtmux/server.hpp
- from_env ( observer : CommandObserver = {} , policy : ExecutionPolicy = {} ) expected< Server, CommandFailure >
-
The server this process is running inside.
tmux exports
TMUXto everything it starts, as `<socket path>,<server pid>,<session id>Only the socket path is read: the session id is stale the moment a pane moves, and a#()` job carries no session at all — so a caller who wants the session asks tmux, rather than trusting what it inherited.Discussed in Environment
0 declared, 0 inherited