#include <glib.h>
int main(int argc, char* argv[])
{
	if (argc <= 1) {
		g_message("you must give an uri to launch");
		return -1;
	}
	g_type_init();
	GError *error = NULL;
	if (!g_app_info_launch_default_for_uri (argv[1], NULL, &error)) {
		g_warning ("Launching failed: %s\n", error->message);
		return -1;
	}
	return 0;	
}
