mimetypes: adding mimetype for scons scripts

Jerome Leclanche adys.wh at gmail.com
Tue Jan 20 10:32:56 PST 2015


2015-01-20 18:58 GMT+01:00 Carnë Draug <carandraug+dev at gmail.com>:
> Hi
>
> scons [1] is a build system and I was thinking of adding it to
> shared-mime-info.  Its files are very simple to identify, they are
> always named SConstruct or SConscript.  These files are also valid
> python scripts.
>
> Should shared-mime-info identify them (I can submit a git patch, no
> problem) or should SCons itself add a rule when they are installed?
> I am guessing that a SCons mimetype would be "text/x-scons" is that
> correct? Or should they be identified only as python scripts?
>
> I saw there are rules for make and cmake so I thought that adding
> to shared-mime-info would be the way to go.
>
> Thank you
> Carnë
>
> [1] http://www.scons.org/
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg

If a text/x-scons mime type is defined and accepted by the SCons devs,
it would then be a sub-type of text/x-python.
J. Leclanche


More information about the xdg mailing list