/*
 * Compile with
 * gcc -g -Wall $(pkg-config --libs --cflags glib-2.0) glookup.c -o glookup
 */

#include <glib.h>

int
main (int argc, char** argv) {
	char *path;

	if (argc != 2) {
		g_printerr ("Usage: %s FILENAME\n", argv[0]);
		return 1;
	}

	path = g_lookup_data_dirs (argv[1]);
	if (path)
		g_print ("Found %s\n", path);
	else
		g_print ("No file found\n");
	g_free (path);

	return 0;
}
