Comment 4 for bug 1792604

Revision history for this message
Olivier Tilloy (osomon) wrote :

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

#DEBHELPER#