summaryrefslogtreecommitdiff
path: root/community-testing/gambas2/gambas2-script.install
blob: 86558e4345ec5c47c0a3f6f4d44c61ca3c429782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}