diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-13 12:31:19 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-13 12:31:19 -0800 |
commit | 1ac1fc733d4f5416743ecc1c8e667eb86e722f2a (patch) | |
tree | 7557349f4b947017d1e434925469263119c21fdc | |
parent | 9a25d4891925352b4920af1c40c46e15444f091d (diff) | |
download | pesconvert-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-- | Makefile | 4 | ||||
-rw-r--r-- | PES-Mime.xml | 8 |
2 files changed, 12 insertions, 0 deletions
@@ -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> |