The following should do the trick (will require thorough testing):
$ cat debian/yaru-theme-gtk.postinst
#!/bin/sh
set -e
# When first installing yaru-theme-gtk (i.e. when upgrading from bionic),
# remove the communitheme snap if present (https://launchpad.net/bugs/1792604).
if [ "$1" = configure -a -z "$2" ]; then
snap remove communitheme || true
fi
The following should do the trick (will require thorough testing):
$ cat debian/ yaru-theme- gtk.postinst
#!/bin/sh
set -e
# When first installing yaru-theme-gtk (i.e. when upgrading from bionic), /launchpad. net/bugs/ 1792604).
# remove the communitheme snap if present (https:/
if [ "$1" = configure -a -z "$2" ]; then
snap remove communitheme || true
fi
#DEBHELPER#