resolve config directory dynamically following a priority order

This commit is contained in:
2026-07-12 14:49:25 +02:00
parent 8315b8a6e3
commit a6a7f80cce
11 changed files with 133 additions and 40 deletions
+3 -3
View File
@@ -4,9 +4,9 @@ import Foundation
///
/// phbar ships a set of built-in recognizers (volume, network, appearance,
/// power, mpd) compiled into the host. External recognizers are loaded at
/// runtime as shared libraries from `~/.config/phbar/events/<name>/` and conform
/// to this same protocol, so the host drives built-in and external recognizers
/// through one shape.
/// runtime as shared libraries from the events directory
/// (`<config>/events/<name>/`) and conform to this same protocol, so the host
/// drives built-in and external recognizers through one shape.
///
/// Conform an `NSObject` subclass and export a zero-argument factory via
/// `@_cdecl(PHEventCreateSymbol)`: