search more paths for effects

This commit is contained in:
itsmattkc
2018-12-29 11:21:15 +11:00
parent a5ff76575b
commit 14fb979926
4 changed files with 53 additions and 52 deletions
+1 -7
View File
@@ -7,14 +7,8 @@
QString real_app_dir;
QString get_effects_dir() {
QString env_path(qgetenv("OLIVE_EFFECTS_PATH"));
if (!env_path.isEmpty()) return env_path;
return get_app_dir() + "/effects";
}
QString get_app_dir() {
if (real_app_dir.isEmpty()) {
if (real_app_dir.isEmpty()) {
QString app_path = QCoreApplication::applicationFilePath();
real_app_dir = app_path.left(app_path.lastIndexOf('/'));
}