aboutsummaryrefslogtreecommitdiff
path: root/src/er_xdg_pipe_menu_sup.erl
diff options
context:
space:
mode:
authorChristopher R. Nelson <christopher.nelson@languidnights.com>2026-07-20 22:39:26 -0400
committerChristopher R. Nelson <christopher.nelson@languidnights.com>2026-07-20 22:39:26 -0400
commit810cb6fdd86452b75e520fc17daec40ba36eba13 (patch)
treeec16094768c947d92273bccf8e6d520e9bb248a8 /src/er_xdg_pipe_menu_sup.erl
Initial OTP application skeleton
rebar3-generated er_xdg_pipe_menu app/supervisor scaffold, to be filled in with XDG .desktop file discovery/parsing and openbox pipemenu generation. MIT licensed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'src/er_xdg_pipe_menu_sup.erl')
-rw-r--r--src/er_xdg_pipe_menu_sup.erl37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/er_xdg_pipe_menu_sup.erl b/src/er_xdg_pipe_menu_sup.erl
new file mode 100644
index 0000000..2e42081
--- /dev/null
+++ b/src/er_xdg_pipe_menu_sup.erl
@@ -0,0 +1,37 @@
+%%%-------------------------------------------------------------------
+%% @doc er_xdg_pipe_menu top level supervisor.
+%% @end
+%%%-------------------------------------------------------------------
+
+-module(er_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 => 0,
+ period => 1
+ },
+ ChildSpecs = [],
+ {ok, {SupFlags, ChildSpecs}}.
+
+%% internal functions