a8b4e16b71
Also: - add libsrvg-devel (new dependency) - add lua53-devel (plugins dep - @tornaria) - add help2man to hostmakedepends ( man page - @tornaria) - remove virtual?tex - remove INSTALL.msg - add patch by @tornaria to load plugins from the users home dir.
19 lines
828 B
Diff
19 lines
828 B
Diff
Temporary patch to load plugins from $CONFIG_FOLDER/plugins/,
|
|
usually $HOME/.config/xournalpp/plugins/
|
|
|
|
Otherwise, the only way to load plugins is to place them in the
|
|
system directory /usr/share/xournalpp/plugins.
|
|
|
|
A more general approach for plugin paths is planned, see
|
|
https://github.com/xournalpp/xournalpp/issues/1155#issuecomment-623234420
|
|
|
|
--- a/src/plugin/PluginController.cpp 2021-03-14 00:26:17.633925344 -0300
|
|
+++ b/src/plugin/PluginController.cpp 2021-03-14 00:27:08.487299784 -0300
|
|
@@ -15,6 +15,7 @@
|
|
PluginController::PluginController(Control* control): control(control) {
|
|
#ifdef ENABLE_PLUGINS
|
|
auto searchPath = control->getGladeSearchPath()->getFirstSearchPath();
|
|
+ loadPluginsFrom(Util::getConfigSubfolder("plugins"));
|
|
loadPluginsFrom((searchPath /= "../plugins").lexically_normal());
|
|
#endif
|
|
}
|