Bug 26913

Summary: Add OpenCL MIME-type
Product: shared-mime-info Reporter: Matthias Fuchs <mat69>
Component: freedesktop.org.xmlAssignee: Shared Mime Info group <shared_mime_info>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: medium CC: gphemsley, kfunk
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: patch to add OpenCL mime-type
patch v2, added missing hunks

Description Matthias Fuchs 2010-03-05 12:23:29 UTC
Could you please add OpenCL C to the MIME database?
OpenCL C is mostly based on C99.

File-ending: .cl
Comment 1 Bastien Nocera 2010-03-05 12:29:29 UTC
See the HACKING file in the sources for how to request new mime-types.
Comment 2 Bastien Nocera 2013-02-13 10:17:12 UTC
Please follow the instructions at:
http://cgit.freedesktop.org/xdg/shared-mime-info/tree/HACKING#n31
for mime-type additions.
Comment 3 Kevin Funk 2017-03-04 00:24:17 UTC
Created attachment 130058 [details] [review]
patch to add OpenCL mime-type
Comment 4 Kevin Funk 2017-03-04 00:25:10 UTC
Created attachment 130059 [details] [review]
patch v2, added missing hunks
Comment 5 Bastien Nocera 2017-03-04 11:43:33 UTC
Is there no better mime-type than "text/x-openclsrc" ?
Comment 6 Kevin Funk 2017-03-04 20:09:37 UTC
Well, suggestions welcome.

I made that name up. The naming scheme is adopted from "x-c++src", etc., seems consistent to me.
Comment 7 Bastien Nocera 2017-03-09 13:07:22 UTC
Stupid spammer...
Comment 8 Bastien Nocera 2017-03-09 13:13:33 UTC
I used text/x-opencl-src instead, to make it readable.

commit 4ab969c398671c519a10a601ad3eeb46f04361de
Author: Kevin Funk <kfunk@kde.org>
Date:   Sat Mar 4 01:22:00 2017 +0100

    Add OpenCL mime-type
    
    https://bugs.freedesktop.org/show_bug.cgi?id=26913

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.