anotherim-desktop/main/src/main.vala

21 lines
485 B
Vala
Raw Normal View History

2017-03-10 18:34:56 +00:00
using Dino.Entities;
using Dino.Ui;
namespace Dino {
void main(string[] args) {
Gtk.init(ref args);
2017-03-11 22:52:12 +00:00
Dino.Ui.Application app = new Dino.Ui.Application();
Plugins.Loader loader = new Plugins.Loader();
2017-03-11 00:29:38 +00:00
foreach(string plugin in new string[]{"omemo"}) {
2017-03-10 18:34:56 +00:00
try {
loader.load(plugin, app);
} catch (Plugins.Error e) {
2017-03-10 18:34:56 +00:00
print(@"Error loading plugin $plugin: $(e.message)\n");
}
}
app.run(args);
loader.shutdown();
2017-03-10 18:34:56 +00:00
}
}