#!/usr/bin/env escript %%! -noshell %% Openbox pipe menu entry point. Tries the running daemon's Unix %% socket first; falls back to an inline scan+parse+render if it %% isn't reachable. See src/xdg_pipe_menu_cli.erl for the logic -- %% this script only wires up the code path to the compiled app. main(Args) -> add_code_paths(), xdg_pipe_menu_cli:main(Args). add_code_paths() -> ScriptDir = filename:dirname(filename:absname(escript:script_name())), RepoRoot = filename:dirname(ScriptDir), Pattern = filename:join([RepoRoot, "_build", "default", "lib", "*", "ebin"]), code:add_pathsz(filelib:wildcard(Pattern)).