Skip to content

Commit e71636f

Browse files
committed
anyrun: Restored using ANYRUN_PLUGINS for Nix packaging
1 parent 5140811 commit e71636f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

anyrun/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ impl Component for App {
252252
plugin.to_owned()
253253
} else {
254254
let mut search_dirs = vec![format!("{user_dir}/plugins")];
255+
if let Ok(path) = env::var("ANYRUN_PLUGINS") {
256+
search_dirs.push(path);
257+
}
255258
search_dirs.extend(PLUGIN_PATHS.iter().map(|path| path.to_string()));
256259

257260
// Attempt to load both `<plugin>` and `lib<plugin>.so` from

0 commit comments

Comments
 (0)