#!/bin/sh
# postinst script 
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#

case "$1" in
    configure)
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/background/picture_filename /usr/share/backgrounds/linuxmint/default_background.jpg
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/background/picture_options "zoom"	
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/background/primary_color "#000000000000"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/background/secondary_color "#000000000000"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/background/color_shading_type "solid"

	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/interface/gtk_theme Mint-X
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/interface/icon_theme Mint-X
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type bool --set /desktop/mate/interface/menus_have_icons true

	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/font_rendering/antialiasing "rgba"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type float --set /desktop/mate/font_rendering/dpi 96.0
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/font_rendering/hinting "slight"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/font_rendering/rgba_order "rgb" 

	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/url-handlers/mailto/command "thunderbird %s"

	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /desktop/mate/sound/theme_name LinuxMint
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/notification-daemon/theme standard
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/mate-session/options/splash_image splash/linuxmint.png
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type bool --set /apps/gedit-2/preferences/editor/save/create_backup_copy false

	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type boolean --set /apps/caja/desktop/computer_icon_visible true
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type boolean --set /apps/caja/desktop/home_icon_visible true
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type boolean --set /apps/caja/desktop/volumes_visible true
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type boolean --set /apps/caja/desktop/trash_icon_visible false
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type bool --set /apps/caja/preferences/enable_delete true
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/caja/preferences/background_color "#ffffff"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type bool --set /apps/caja/preferences/background_set true

	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/marco/general/theme Mint-X
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/marco/general/button_layout "menu:minimize,maximize,close"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type int --set /apps/marco/general/num_workspaces 4
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/compiz/plugins/cube/screen0/options/color "#eeeeee00"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type int --set /apps/compiz/general/screen0/options/hsize 4
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/compiz/plugins/cube/screen0/options/color 000000ff
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/compiz-1/plugins/resize/screen0/options/border_color "#aafb009f"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/compiz-1/plugins/resize/screen0/options/fill_color "#b5fb0019"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/compiz-1/plugins/grid/screen0/options/outline_color "#a9fb009f"
	mateconftool-2 --direct --config-source xml:readwrite:/etc/mateconf/mateconf.xml.defaults --type string --set /apps/compiz-1/plugins/grid/screen0/options/fill_color "#abfb004f"
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0


