summaryrefslogtreecommitdiff
path: root/pcr-testing/anki-ccbc/anki-ccbc.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr-testing/anki-ccbc/anki-ccbc.install')
-rw-r--r--pcr-testing/anki-ccbc/anki-ccbc.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr-testing/anki-ccbc/anki-ccbc.install b/pcr-testing/anki-ccbc/anki-ccbc.install
new file mode 100644
index 000000000..8fd036a16
--- /dev/null
+++ b/pcr-testing/anki-ccbc/anki-ccbc.install
@@ -0,0 +1,11 @@
+post_install()
+{
+ xdg-mime install /usr/share/anki-ccbc/anki.xml --novendor
+ xdg-mime default /usr/share/applications/anki-ccbc.desktop application/x-anki
+ xdg-mime default /usr/share/applications/anki-ccbc.desktop application/x-apkg
+}
+
+pre_remove()
+{
+ xdg-mime uninstall /usr/share/mime/packages/anki.xml
+}