Skip to content

Commit

Permalink
added mime info fityk.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Jul 22, 2007
1 parent 4a45450 commit a86af41
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ EXTRA_DIST = fityk.spec fityk.iss fityk.url fityk.svg
AUTOMAKE_OPTIONS = dist-bzip2
SUBDIRS = @DOC@ src samples config 3rdparty @PYBINDINGDIR@

dist_icon_DATA = fityk.png
icondir = $(datadir)/pixmaps
dist_desktop_DATA = fityk.desktop
desktopdir = $(datadir)/applications
mimepkgdir = $(datadir)/mime/packages

dist_icon_DATA = fityk.png
dist_desktop_DATA = fityk.desktop
dist_mimepkg_DATA = fityk.xml

5 changes: 1 addition & 4 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ Legend:

* GUI: should (and where) windows size & position be stored?

* install icon (install -m644 -D fityk.png %{_datadir}/icons/fityk.png)

* add --disable-rpath option to configure (using popular lib-link.m4 file)
[it seems to be not trivial and will be probably abandoned]

// * make SVG icon, mv fityk.png

* update and add fityk.xml mime specification (for .fit and .xy) to the tarball.
http://www.gnome.org/learn/admin-guide/latest/mimetypes-source-xml.html
// * add fityk.xml mime specification (for .fit and .xy) to the tarball.

* the API should be designed as FitykAPI class, rather than namespace,
to enable multiple instances of the class.
Expand Down
17 changes: 17 additions & 0 deletions fityk.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-fityk">
<sub-class-of type="text/plain"/>
<comment>fityk script</comment>
<glob pattern="*.fit"/>
</mime-type>
<mime-type type="application/x-fityk-data">
<sub-class-of type="text/plain"/>
<comment>fityk data file</comment>
<glob pattern="*.xy"/>
<magic priority="50">
<match type="string" value="# Fityk 0.7.8" offset="0"/>
</magic>
</mime-type>
</mime-info>

0 comments on commit a86af41

Please sign in to comment.