aboutsummaryrefslogtreecommitdiff
path: root/src/xdg_pipe_menu_sup.erl
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 /src/xdg_pipe_menu_sup.erl
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 'src/xdg_pipe_menu_sup.erl')
-rw-r--r--src/xdg_pipe_menu_sup.erl41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/xdg_pipe_menu_sup.erl b/src/xdg_pipe_menu_sup.erl
new file mode 100644
index 0000000..a4d2828
--- /dev/null
+++ b/src/xdg_pipe_menu_sup.erl
@@ -0,0 +1,41 @@
+%%%-------------------------------------------------------------------
+%% @doc xdg_pipe_menu top level supervisor.
+%% @end
+%%%-------------------------------------------------------------------
+
+-module(xdg_pipe_menu_sup).
+
+-behaviour(supervisor).
+
+-export([start_link/0]).
+
+-export([init/1]).
+
+-define(SERVER, ?MODULE).
+
+start_link() ->
+ supervisor:start_link({local, ?SERVER}, ?MODULE, []).
+
+%% sup_flags() = #{strategy => strategy(), % optional
+%% intensity => non_neg_integer(), % optional
+%% period => pos_integer()} % optional
+%% child_spec() = #{id => child_id(), % mandatory
+%% start => mfargs(), % mandatory
+%% restart => restart(), % optional
+%% shutdown => shutdown(), % optional
+%% type => worker(), % optional
+%% modules => modules()} % optional
+init([]) ->
+ SupFlags = #{
+ strategy => one_for_all,
+ intensity => 5,
+ period => 10
+ },
+ ChildSpecs = [
+ #{id => xdg_pipe_menu_cache, start => {xdg_pipe_menu_cache, start_link, []}},
+ #{id => xdg_pipe_menu_watcher, start => {xdg_pipe_menu_watcher, start_link, []}},
+ #{id => xdg_pipe_menu_socket, start => {xdg_pipe_menu_socket, start_link, []}}
+ ],
+ {ok, {SupFlags, ChildSpecs}}.
+
+%% internal functions