summaryrefslogtreecommitdiff
path: root/x11/albert/files/patch-src_app_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11/albert/files/patch-src_app_main.cpp')
-rw-r--r--x11/albert/files/patch-src_app_main.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/albert/files/patch-src_app_main.cpp b/x11/albert/files/patch-src_app_main.cpp
new file mode 100644
index 000000000000..b8f7f97ac1d5
--- /dev/null
+++ b/x11/albert/files/patch-src_app_main.cpp
@@ -0,0 +1,25 @@
+--- src/app/main.cpp.orig 2018-12-31 18:07:36 UTC
++++ src/app/main.cpp
+@@ -296,15 +296,21 @@ int main(int argc, char **argv) {
+ if ( parser.isSet("plugin-dirs") )
+ pluginDirs = parser.value("plugin-dirs").split(',');
+ else {
+-#if defined __linux__
++#if defined __linux__ || defined __FreeBSD__
+ QStringList dirs = {
+ #if defined MULTIARCH_TUPLE
+ QFileInfo("/usr/lib/" MULTIARCH_TUPLE).canonicalFilePath(),
+ #endif
++#if defined __linux__
+ QFileInfo("/usr/lib/").canonicalFilePath(),
+ QFileInfo("/usr/lib64/").canonicalFilePath(),
+ QFileInfo("/usr/local/lib/").canonicalFilePath(),
+ QFileInfo("/usr/local/lib64/").canonicalFilePath(),
++#endif
++#if defined __FreeBSD__
++ QFileInfo("/usr/lib/").canonicalFilePath(),
++ QFileInfo("/usr/local/lib/").canonicalFilePath(),
++#endif
+ QDir::home().filePath(".local/lib/"),
+ QDir::home().filePath(".local/lib64/")
+ };