#!/bin/bash

set -e

if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
  if [ -x /etc/mateconf/mateconf.xml.defaults ]; then
    # Turn off Compiz
    mateconftool-2 --direct --config-source=xml:readwrite:/etc/mateconf/mateconf.xml.defaults \
    -s "/desktop/mate/session/required_components/windowmanager" --type string "marco"
  fi
fi
