From 00f77ef3b2b7856520daba393370f67b773c2184 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Apr 2012 00:01:35 +0000 Subject: Sat Apr 28 00:01:35 UTC 2012 --- community-testing/gambas2/gambas2-script.install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 community-testing/gambas2/gambas2-script.install (limited to 'community-testing/gambas2/gambas2-script.install') diff --git a/community-testing/gambas2/gambas2-script.install b/community-testing/gambas2/gambas2-script.install new file mode 100644 index 000000000..86558e434 --- /dev/null +++ b/community-testing/gambas2/gambas2-script.install @@ -0,0 +1,15 @@ +post_install() { + xdg-icon-resource install --context mimetypes --size 64 \ + /usr/share/gambas2/mime/application-x-gambasscript.png application-x-gambasscript + xdg-icon-resource install --context mimetypes --size 64 \ + /usr/share/gambas2/mime/application-x-gambasserverpage.png application-x-gambasserverpage + xdg-mime install /usr/share/gambas2/mime/application-x-gambasscript.xml + xdg-mime install /usr/share/gambas2/mime/application-x-gambasserverpage.xml +} + +pre_remove() { + xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambasscript + xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambasserverpage + xdg-mime uninstall /usr/share/gambas2/mime/application-x-gambasscript.xml + xdg-mime uninstall /usr/share/gambas2/mime/application-x-gambasserverpage.xml +} -- cgit v1.2.3-54-g00ecf