aboutsummaryrefslogtreecommitdiff
path: root/main/src/main.vala
blob: dfaa661ed10c8684eb601384f54cabca47f0f1c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Dino.Entities;
using Dino.Ui;

namespace Dino {

void main(string[] args) {
    Gtk.init(ref args);
    Dino.Ui.Application app = new Dino.Ui.Application();
    Plugins.Loader loader = new Plugins.Loader();
    foreach(string plugin in new string[]{"omemo", "openpgp"}) {
        try {
            loader.load(plugin, app);
        } catch (Error e) {
            print(@"Error loading plugin $plugin: $(e.message)\n");
        }
    }
    app.run(args);
    loader.shutdown();
}

}