aboutsummaryrefslogtreecommitdiff
path: root/bin/xdg_pipe_menu_menu
diff options
context:
space:
mode:
authorChristopher R. Nelson <christopher.nelson@languidnights.com>2026-07-21 11:44:41 -0400
committerChristopher R. Nelson <christopher.nelson@languidnights.com>2026-07-21 11:44:41 -0400
commit5ff1fbe175af17fbb808c5ea942f465a932da3af (patch)
treeb6a26b4b7e896e5ed5d85a5003c4d176ed5c8e9e /bin/xdg_pipe_menu_menu
parent7e8472e1e2a0b39746ef86c041d56b92bab5a6b7 (diff)
Rename app from er_xdg_pipe_menu to xdg_pipe_menuHEADmain
Drop the "er-" prefix throughout: module/atom names, filenames, socket paths, and docs. It was an implementation detail, not part of the app's identity. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'bin/xdg_pipe_menu_menu')
-rwxr-xr-xbin/xdg_pipe_menu_menu17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/xdg_pipe_menu_menu b/bin/xdg_pipe_menu_menu
new file mode 100755
index 0000000..a120a9f
--- /dev/null
+++ b/bin/xdg_pipe_menu_menu
@@ -0,0 +1,17 @@
+#!/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)).