Skip to content

Commit ef33488

Browse files
committed
feat: introduce POP_LAUNCHER_PLUGIN_DIR to configure plugin directory
Signed-off-by: Ryan Brue <[email protected]>
1 parent 6a1b8b9 commit ef33488

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/src/scripts/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ impl App {
109109
.join(LOCAL_PATH),
110110
);
111111
queue.push_back(Path::new(SYSTEM_ADMIN_PATH).to_owned());
112-
queue.push_back(Path::new(DISTRIBUTION_PATH).to_owned());
112+
queue.push_back(
113+
Path::new(option_env!("POP_LAUNCHER_PLUGIN_DIR").unwrap_or(DISTRIBUTION_PATH))
114+
.to_owned(),
115+
);
113116

114117
let script_sender = async move {
115118
while let Some(path) = queue.pop_front() {

0 commit comments

Comments
 (0)