From aabd453a358ffba18ad3fe3dd3dc78bbe89180bf Mon Sep 17 00:00:00 2001 From: Manas Date: Wed, 4 Jul 2018 19:38:31 +0530 Subject: [PATCH 1/2] Adding postinst script to make changes in Paper icon theme to register itself using update-alternatives with high priority than others. Leading to closing of bug number #408 --- packages/paper-icon-theme/debian/postinst | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 packages/paper-icon-theme/debian/postinst diff --git a/packages/paper-icon-theme/debian/postinst b/packages/paper-icon-theme/debian/postinst new file mode 100644 index 00000000..6d3674f8 --- /dev/null +++ b/packages/paper-icon-theme/debian/postinst @@ -0,0 +1,8 @@ +#! /bin/sh +set -e + +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then + update-alternatives --install /usr/share/icons/default/index.theme \ + x-cursor-theme /usr/share/icons/Paper/cursor.theme 50 +fi + -- 2.17.1 From 83da95ba076900f3c8884b3b4828ad69cd85e6cd Mon Sep 17 00:00:00 2001 From: Manas Date: Wed, 4 Jul 2018 19:45:59 +0530 Subject: [PATCH 2/2] giving more higher priority in update-alternative , (150 rather than 50) --- packages/paper-icon-theme/debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/paper-icon-theme/debian/postinst b/packages/paper-icon-theme/debian/postinst index 6d3674f8..7a74ffca 100644 --- a/packages/paper-icon-theme/debian/postinst +++ b/packages/paper-icon-theme/debian/postinst @@ -3,6 +3,6 @@ set -e if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then update-alternatives --install /usr/share/icons/default/index.theme \ - x-cursor-theme /usr/share/icons/Paper/cursor.theme 50 + x-cursor-theme /usr/share/icons/Paper/cursor.theme 150 fi -- 2.17.1