Bug 16050 - The Skencil mimetype
Summary: The Skencil mimetype
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 09:17 UTC by Tim Beaulen
Modified: 2008-06-11 08:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Tim Beaulen 2008-05-21 09:17:48 UTC
Hello,

Can you please add the mimetype for skencil files?

Included are:
1. The XML for the skencil files.
2. A link to the skencil file format. There's no real document, but it's explained in the exort code.

Note that I'm not the maintainer of the Skencil program. But I need the mimetype to create a plugin to read and write Skencil files from within another program.



1. Skencil.xml

<?xml version="1.0" ?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-skencil">
    <comment>Skencil document</comment>
    <glob pattern="*.sk"/>
    <magic priority="50">
      <match type="string" value="##Sketch" offset="0"/>
    </magic>
  </mime-type>
</mime-info>


2. Link to the fileformat
http://sk1.svn.sourceforge.net/viewvc/sk1/trunk/sK1/src/app/plugins/Filters/sk1saver.py?view=markup

3. Examples of Skencil files
http://www.skencil.org/gallery.html


Thanks
Comment 1 Tim Beaulen 2008-05-25 00:13:58 UTC
The extension *.sk1 should be added too:

<?xml version="1.0" ?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-skencil">
    <comment>Skencil document</comment>
    <glob pattern="*.sk"/>
    <glob pattern="*.sk1"/>
    <magic priority="50">
      <match type="string" value="##Sketch" offset="0"/>
    </magic>
  </mime-type>
</mime-info>
Comment 2 Bastien Nocera 2008-06-11 08:08:27 UTC
I used image/x-skencil instead of application/x-skencil, as Skencil files are images.

* freedesktop.org.xml.in:
* tests/bathead.sk:
* tests/list: Add image/x-skencil mime-type for Skencil
files, with help from Tim Beaulen <tbscope@gmail.com>
(Closes: #16050)


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.