aboutsummaryrefslogtreecommitdiff
path: root/main/src/main.vala
blob: 0fe728783d13eb64a174879391ea05c67196ee10 (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 (Plugins.Error e) {
            print(@"Error loading plugin $plugin: $(e.message)\n");
        }
    }
    app.run(args);
    loader.shutdown();
}

}