#include <string.h> /* for strlen() */
#include <time.h> /* for ctime() */
#include <libgnome/libgnome.h>
#include <libgnomevfs/gnome-vfs.h>
#include <libgnomevfs/gnome-vfs-mime.h>
#ifdef LINUX
# include <linux/fs.h> /* for MAJOR() und MINOR() */
#endif /* LINUX */
int main (int argc, char **argv) {
if (!gnome_vfs_init())
{
g_error("%s: could not initialize GnomeVFS/n", argv[0]);
exit (2);
}
printf ("%s/n", gnome_vfs_get_file_mime_type (argv[1], NULL, FALSE));
gnome_vfs_shutdown();
return 0;
}