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/util/system.vala | |
parent | 211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff) | |
parent | dc6c76eb04dfe3d4262a1806808f0bc0bf523238 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/util/system.vala')
-rw-r--r-- | src/util/system.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/system.vala b/src/util/system.vala index f2436e4..38abf1e 100644 --- a/src/util/system.vala +++ b/src/util/system.vala @@ -10,6 +10,11 @@ File? get_sys_install_dir(File exec_dir) { File child = exec_dir.get_child("ui"); if (!FileUtils.test(child.get_path(), FileTest.IS_DIR | FileTest.EXISTS)) { + // If not, let's see if we are in "src" dir - meson out-of-tree build + if (exec_dir.get_basename() == "src") { + return null; + } + return File.new_for_path(Resources.PREFIX); } |