summaryrefslogtreecommitdiff
path: root/src/plugins/Plugins.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-30 14:09:20 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-30 14:09:20 +0200
commit5e9f4eea451a77ba3b93db3747841ed2bd969e9f (patch)
tree75046a38ca68975261d853a2e56ff7bf6b3e1daa /src/plugins/Plugins.vala
parent18b52c2983a1b3409011f72d27f15de576c5eb1c (diff)
New upstream version 0.30.1upstream/0.30.1
Diffstat (limited to 'src/plugins/Plugins.vala')
-rw-r--r--src/plugins/Plugins.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/Plugins.vala b/src/plugins/Plugins.vala
index 5f6613c..6aff461 100644
--- a/src/plugins/Plugins.vala
+++ b/src/plugins/Plugins.vala
@@ -112,6 +112,10 @@ private Gee.HashSet<string> core_ids;
public void init() throws Error {
search_dirs = new File[0];
+ unowned string plugin_dir = Environment.get_variable("SHOTWELL_PLUGIN_PATH");
+ if (plugin_dir != null && plugin_dir != "") {
+ search_dirs += File.new_for_commandline_arg(plugin_dir);
+ }
search_dirs += AppDirs.get_user_plugins_dir();
search_dirs += AppDirs.get_system_plugins_dir();