summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-01-13 12:31:19 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-01-13 12:31:19 -0800
commit1ac1fc733d4f5416743ecc1c8e667eb86e722f2a (patch)
tree7557349f4b947017d1e434925469263119c21fdc
parent9a25d4891925352b4920af1c40c46e15444f091d (diff)
downloadpesconvert-1ac1fc733d4f5416743ecc1c8e667eb86e722f2a.tar.gz
Add silly rule to teach the system about PES files
XML? F*ck me with a ten-foot pole. But if I want the thumbnailer, I apparently need this.
-rw-r--r--Makefile4
-rw-r--r--PES-Mime.xml8
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b5def9e..8629700 100644
--- a/Makefile
+++ b/Makefile
@@ -3,3 +3,7 @@ CFLAGS=-Wall -g
pesconvert: main.o pes.o svg.o png.o cairo.o
$(CC) -o $@ $^ -lpng -lcairo
+
+update-mime:
+ cp PES-Mime.xml /usr/share/mime/packages/
+ update-mime-database /usr/share/mime
diff --git a/PES-Mime.xml b/PES-Mime.xml
new file mode 100644
index 0000000..f6caeec
--- /dev/null
+++ b/PES-Mime.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='utf-8'?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-pesfile">
+ <comment>Brother PES file</comment>
+ <glob pattern="*.pes"/>
+ <glob pattern="*.PES"/>
+ </mime-type>
+</mime-info>