changeset 76:fb379103c457

Add custom mime config to make Nautilus show more icons
author IBBoard <dev@ibboard.co.uk>
date Sat, 03 Mar 2018 20:34:55 +0000
parents 0549e4405a51
children 667a1ffda9dc
files mime-extra.xml setup.sh
diffstat 2 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mime-extra.xml	Sat Mar 03 20:34:55 2018 +0000
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+  <mime-type type="application/pkcs8">
+         <comment xml:lang="en">PKCS8 key</comment>
+         <magic priority="50">
+                <match type="string" value="-----BEGIN PRIVATE KEY-----" offset="0"/>
+         </magic>
+         <glob pattern="*.key"/>
+  </mime-type>
+  <mime-type type="application/x-rrd">
+         <comment xml:lang="en">Round-Robin Database</comment>
+         <magic priority="50">
+                <match type="string" value="RRD\00003" offset="0"/>
+         </magic>
+         <glob pattern="*.rrd"/>
+  </mime-type>
+  <mime-type type="application/x-keepass">
+         <comment xml:lang="en">Keepass Database</comment>
+         <glob pattern="*.kdb"/>
+  </mime-type>
+  <mime-type type="application/x-keepassx">
+         <comment xml:lang="en">KeepassX Database</comment>
+         <glob pattern="*.kdbx"/>
+  </mime-type>
+  <mime-type type="text/x-readme">
+         <comment xml:lang="en">ReadMe</comment>
+         <glob pattern="README"/>
+  </mime-type>
+  <mime-type type="text/x-readme">
+         <comment xml:lang="en">ReadMe</comment>
+         <glob pattern="README.txt"/>
+  </mime-type>
+  <mime-type type="text/x-readme">
+         <comment xml:lang="en">ReadMe (Markdown)</comment>
+         <glob pattern="README.md"/>
+  </mime-type>
+</mime-info>
\ No newline at end of file
--- a/setup.sh	Sat Feb 17 19:09:53 2018 +0000
+++ b/setup.sh	Sat Mar 03 20:34:55 2018 +0000
@@ -36,5 +36,7 @@
 create_symlink dircolors ~/.dir_colors
 create_symlink nanorc ~/.nanorc
 create_symlink XCompose ~/.XCompose
+create_symlink mime-extra.xml ~/.local/share/mime/packages/IBBoard-extra.xml
+update-mime-database ~/.local/share/mime/
 mkdir -p ~/.ssh
 add_content "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC2c3IUHY02FAJotQKs3x+uGZ+5XpuKbWUENevjTOF1bAGwGqKNSSg5SlsL5C9aHcu6O/eBKWJNpvUa0vcXXP18ddoILq1DvZfQHDylrweGbaRviSCpRZvSKiNREQd+yAQPwGnsfkpQe5RxXjRTsk7B0VKP2LFL5seDuQfQxtGc6AgjF0TMpBoKD3UkUlfqRX7Q0tQwfTgXTNxYyQOgG61bWeUsz0XSZelF1MHsXxLwUUFuZAigwiv9YUlBSAAEwWySyN8RdsJadunKYHbxr9cJfj4T5soKVeDi2n94AScFuokAyDf3MFvJ1PYZ0p4rFzNF2zrOK3rqvA3aGg4Bi+wx ssh@ibboard.co.uk" ~/.ssh/authorized_keys