Commit 2e433ed
Open .bf files with Birdfont by default on Linux
Changed files (2)
Diff
@@ -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 ()new file mode 100644@@ -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="<font" offset="1"/>+ </magic>+ <glob pattern="*.bf" />+ <alias type="application/birdfont"/>+ </mime-type>+</mime-info>