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

}