diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:43:08 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:43:08 +0200 |
commit | 2b3f22361da0c1d8e6ce70d71352821758186db7 (patch) | |
tree | 5d10633b47369b3aa52a05bf889ede0dbe5ee108 /src/AppDirs.vala | |
parent | 211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff) | |
parent | dc6c76eb04dfe3d4262a1806808f0bc0bf523238 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/AppDirs.vala')
-rw-r--r-- | src/AppDirs.vala | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/AppDirs.vala b/src/AppDirs.vala index 0c69270..ffea859 100644 --- a/src/AppDirs.vala +++ b/src/AppDirs.vala @@ -260,9 +260,18 @@ class AppDirs { public static File get_lib_dir() { File? install_dir = get_install_dir(); + + // Running from source tree + if (install_dir == null) { + // Meson build + if (get_exec_dir().get_path().has_suffix("src")) { + return get_exec_dir().get_parent(); + } + + return get_exec_dir(); + } - return (install_dir != null) ? install_dir.get_child(Resources.LIB).get_child("shotwell") - : get_exec_dir(); + return install_dir.get_child(Resources.LIB).get_child("shotwell"); } public static File get_system_plugins_dir() { |