aboutsummaryrefslogtreecommitdiff
path: root/main/src/main.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2026-10-04 16:32:47 +0200
committerMarvin W <git@larma.de>2026-10-23 16:59:59 +0200
commitec4ca2a4642552b8424e7703840cd37e371e9e00 (patch)
tree49cbb2db341f51b71125cdb453b89813e323b5c1 /main/src/main.vala
parenta4fad16ee2a34cd523a1f242e60c41073a6006eb (diff)
Only try loading the plugin when actually enabled
Diffstat (limited to 'main/src/main.vala')
-rw-r--r--main/src/main.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/main.vala b/main/src/main.vala
index d683b5d8..63c553fc 100644
--- a/main/src/main.vala
+++ b/main/src/main.vala
@@ -20,9 +20,15 @@ void main(string[] args) {
if (Environment.get_variable("DINO_PLUGINS_LOAD_ALL") == "1") {
loader.load_all();
}
+#if WITH_RTP
loader.load_type(typeof(Plugins.Rtp.Plugin));
+#endif
+#if WITH_OPENPGP
loader.load_type(typeof(Plugins.OpenPgp.Plugin));
+#endif
+#if WITH_OMEMO
loader.load_type(typeof(Plugins.Omemo.Plugin));
+#endif
app.run(args);
loader.shutdown();