projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd410a5
)
Vfs plugins: Available plugins must load
author
Christian Kamm
<mail@ckamm.de>
Tue, 18 Dec 2018 09:31:17 +0000
(10:31 +0100)
committer
Kevin Ottens
<kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:28 +0000
(10:58 +0100)
A plugin that can't be loaded due to dependency issues should not be
considered as available.
src/common/vfs.cpp
patch
|
blob
|
history
diff --git
a/src/common/vfs.cpp
b/src/common/vfs.cpp
index a1ad02efeb216904e17c5728e0c464e4e7405642..4f3b6fadcdf26a37c81b38ee70fdc581ae96756d 100644
(file)
--- a/
src/common/vfs.cpp
+++ b/
src/common/vfs.cpp
@@
-107,6
+107,13
@@
bool OCC::isVfsPluginAvailable(Vfs::Mode mode)
return false;
}
+ // Attempting to load the plugin is essential as it could have dependencies that
+ // can't be resolved and thus not be available after all.
+ if (!loader.load()) {
+ qCWarning(lcPlugin) << "Plugin failed to load:" << loader.errorString();
+ return false;
+ }
+
return true;
}