Skip to main content

Module paths

Module paths 

Source
Expand description

Runtime path resolution for system vs user mode

Provides FHS/XDG-compliant path resolution based on execution context:

  • Root/system service: /run/hyprstream/
  • User service: $XDG_RUNTIME_DIR/hyprstream/
  • Fallback: /tmp/hyprstream-<uid>/

Functions§

bin_dir
User’s executable directory (~/.local/bin)
current_uid
Get the current user’s UID
data_dir
Hyprstream data directory (~/.local/share/hyprstream)
ensure_events_dir
Ensure events directory exists with correct permissions
ensure_runtime_dir
Ensure runtime directory exists with correct permissions
event_socket
EventService IPC socket
events_dir
Socket directory for EventService
events_pub_socket
Publisher socket path for EventService
events_sub_socket
Subscriber socket path for EventService
executable_path
Get the stable executable path for spawning subprocesses.
installed_executable_path
Get the path where hyprstream is installed (if installed)
is_root
Check if running as root
nydus_dir
Nydus runtime directory
pid_file
PID file location for main process
policy_socket
PolicyService IPC socket
registry_socket
RegistryService IPC socket
runtime_dir
Get the appropriate runtime directory based on execution context
sandboxes_dir
Sandbox runtime directory
service_pid_file
PID file for a named service (subprocess mode)
try_data_dir
Resolve the data directory while reporting an invalid instance namespace.
version_binary
Path to installed binary in version directory
version_dir
Version-specific directory (~/.local/share/hyprstream/versions/$VERSION)
versions_dir
Versions directory (~/.local/share/hyprstream/versions)
worker_socket
WorkerService IPC socket
workflow_socket
WorkflowService IPC socket