Clone in a terminal:
Commit 2e433ed
Johan Mattsson - 2014-03-24T21:15:10+00:00
2e433ed5f9b54d95eb259ecc32d7a4103f68d539johan.mattsson.m@gmail.com

Open .bf files with Birdfont by default on Linux

Changed files (2)

Diff

diff --git a/install.py b/install.pyindex 9388c49..a69f52a 100755--- a/install.py+++ b/install.py@@ -132,9 +132,12 @@ else:     install ('resources/linux/birdfont.1', mandir, 644)     install ('resources/linux/birdfont-export.1', mandir, 644) -# translations+#translations for lang_dir in glob.glob('build/locale/*'): 	lc = lang_dir.replace ('build/locale/', "") 	install ('build/locale/' + lc + '/LC_MESSAGES/birdfont.mo', '/share/locale/' + lc + '/LC_MESSAGES' , 644); +#file type +install ('resources/linux/birdfont.xml', '/share/mime/packages', 644)+ installed.close ()diff --git a/resources/linux/birdfont.xml b/resources/linux/birdfont.xmlnew file mode 100644index 0000000..4f999f0--- /dev/null+++ b/resources/linux/birdfont.xml@@ -0,0 +1,12 @@+<?xml version="1.0" encoding="UTF-8"?>+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">+    <mime-type type="application/birdfont">+    <comment>BirdFont file</comment>+    <comment xml:lang="en">Font</comment>+    <magic priority="70">+        <match type="string" value="&lt;font" offset="1"/>+    </magic>+    <glob pattern="*.bf" />+    <alias type="application/birdfont"/>+  </mime-type>+</mime-info>

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112