D5621: Install xdg mimetype definitions for OpenCL C & CUDA C

Aaron Puchert noreply at phabricator.kde.org
Fri Apr 28 23:28:05 UTC 2017


aaronpuchert added inline comments.

INLINE COMMENTS

> kossebau wrote in kdevclang.xml:12
> @aaronpuchert Could you introduce us KDevelop developers to any people who are active in the OpenCL developer scene and who would have the knowledge and motivation to push for proper mimetype ids now?
> There is no shared-mime-info release out yet with the current `text/x-opencl-src`, so if we are quick we can fix things before they reach more people for a begin.
> 
> Just saw in the KDE software world already another mimetype has been in use: `text/x-clsrc`. as part of the syntax highlight definition for OpenCL:
> https://cgit.kde.org/syntax-highlighting.git/tree/data/syntax/opencl.xml#n7
> 
> The alias noted here in the mimetype definition, `text/x-opencl` can seen in even more places.
> And someone is using `text/x-opencl_c` and `application/x-opencl_c`: https://github.com/rtms/rouge/blob/master/lib/rouge/lexers/opencl_c.rb#L14
> 
> So it really needs someone from the active OpenCL scene to tell the IDEs and systems what to use as id. Can you make the difference? :) Any Khronos channels you are on where you could poke people to decide on one, and perhaps even register with IANA?

You're right, no one ever took the time to register a MIME type for OpenCL C. Even the file extension `.cl` doesn't seem to be “official”, at least I can't find any reference to it in the official documents.

I will try to contact Khronos about this and ask them to register with IANA or do it myself, if they don't care. Obviously this is the right way.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D5621

To: kossebau, #kdevelop, qi437103, aaronpuchert
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170428/7c4253dd/attachment-0001.html>


More information about the KDevelop-devel mailing list