[Portland-bugs] [Bug 10042] xdg-mime doesn't check defaults.list correctly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 26 23:20:54 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=10042





------- Comment #3 from bastian at svn.net  2007-06-26 23:20 PST -------
I propose gnomevfs-default along the lines of:

main(argc, argv)
{
   GnomeVFSMimeApplication *app;
   const char *desktop_id;
   if (!argc)
   {
      printf("Usage: gnomevfs-default <mimetype>\n");
      return 2;
   }
   app = gnome_vfs_mime_get_default_application(argv[1]);
   if (!app) return 1;
   desktop_id = gnome_vfs_mime_application_get_desktop_id(app);
   if (!desktop_id) return 1;
   printf("%s\n", desktop_id);
   return 0;
}


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Portland-bugs mailing list