Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 334676 Details for
Bug 449958
media-gfx/gimp-2.8.2 should not set application/pdf filetype in .desktop file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Tool to list installed applications supporting the given MIME type
mimetest.c (text/plain), 1.10 KB, created by
Sebastian Pipping
on 2013-01-06 16:34:42 UTC
(
hide
)
Description:
Tool to list installed applications supporting the given MIME type
Filename:
MIME Type:
Creator:
Sebastian Pipping
Created:
2013-01-06 16:34:42 UTC
Size:
1.10 KB
patch
obsolete
>/* >** Copyright (C) 2013 Sebastian Pipping <sebastian@pipping.org> >** Licensed under GPL v2 or later >*/ >#include <stdio.h> >#include <gio/gio.h> > > >#define INDENT " " > > >int main(int argc, char ** argv) { > if (argc != 2) { > fprintf(stderr, "USAGE: %s MIME_TYPE\n", argv[0]); > return 1; > } > > g_type_init(); > > const char * const mime_type = argv[1]; > GList * p_supporting_app_list = g_app_info_get_recommended_for_type(mime_type); > int index = 0; > > if (! p_supporting_app_list) { > fprintf(stderr, "ERROR: MIME type \"%s\" invalid or not supported by any installed application.\n", mime_type); > return 2; > } > > printf("Applications supporting MIME type \"%s\":\n", mime_type); > for(; p_supporting_app_list; p_supporting_app_list = p_supporting_app_list->next, index++) { > printf("[%d]\n" > INDENT "id = \"%s\"\n" > INDENT "name = \"%s\"\n" > INDENT "command line = \"%s\"\n" > "%s", > index + 1, > g_app_info_get_id(p_supporting_app_list->data), > g_app_info_get_name(p_supporting_app_list->data), > g_app_info_get_commandline(p_supporting_app_list->data), > (p_supporting_app_list->next ? "\n" : "")); > } > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 449958
: 334676