#!/bin/sh
set -e

# overwrite menus and dconf to ensure menus and GNOME folders are up-to-date
mkdir -p /etc/dconf/db/site.d
cp /usr/lib/ubuntustudio-menu/00_ubuntustudio /etc/dconf/db/site.d

mkdir -p /etc/xdg/menus/applications-merged
cp /usr/lib/ubuntustudio-menu/studio.menu /etc/xdg/menus/applications-merged

if [ -f /usr/bin/dconf ]; then
    dconf update
fi

# Tag to allow some debhelper commands to inject relevant code
#DEBHELPER#
