public Gth.Application app;

int main (string[] args) {
	Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
	Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
	Intl.textdomain (Config.GETTEXT_PACKAGE);

	Gst.init (ref args);

	app = new Gth.Application ();
	var status = app.run (args);
	if (app.restart) {
		try {
			var cmd = new StringBuilder (args[0]);
			Process.spawn_command_line_async (cmd.str);
		}
		catch (SpawnError e) {
			error ("%s", e.message);
		}
	}
	return status;
}
