From 6b8b59ee778db3a55aedb7e8cff91dd7849cfed4 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Sat, 29 Sep 2018 21:56:58 +0200 Subject: [PATCH] Search for plugins in current working directory --- src/plugin/plugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugin/plugin.cpp b/src/plugin/plugin.cpp index 8407528..0defbf9 100644 --- a/src/plugin/plugin.cpp +++ b/src/plugin/plugin.cpp @@ -53,6 +53,11 @@ namespace linuxdeploy { paths.insert(paths.begin(), appImageDir.string()); } + // also, look for plugins in current working directory + // could be useful in a "use linuxdeploy centrally, but download plugins into project directory" scenario + std::shared_ptr cwd(get_current_dir_name(), free); + paths.emplace_back(cwd.get()); + for (const auto& dir : paths) { if (!bf::is_directory(dir)) continue;