/usr/lib/ubuntu-mate/ubuntu-mate-settings-overlay is in ubuntu-mate-default-settings 18.04.17.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #!/usr/bin/env bash
function autostart_clean() {
FILENAME="${1}"
if [ -e "/usr/share/mate/autostart/${FILENAME}" ] && [ -e "${HOME}/.config/autostart/${FILENAME}" ]; then
rm -f "${HOME}/.config/autostart/${FILENAME}"
fi
}
function overlay_file() {
local SYSTEM_FILE="/usr/share/ubuntu-mate/settings-overlay/${1}"
local USER_FILE="${HOME}/.${1}"
local USER_DIR=$(dirname "${USER_FILE}")
# If the file doesn't exist or is zero-bytes then overlay the
# configuration.
if [ ! -f "${USER_FILE}" ] || [ ! -s "${USER_FILE}" ]; then
mkdir -p "${USER_DIR}"
cp "${SYSTEM_FILE}" "${USER_FILE}"
fi
}
if [ ! -d "${HOME}/.config/plank/dock1" ]; then
overlay_file config/plank/dock1/launchers/clock.dockitem
overlay_file config/plank/dock1/launchers/desktop.dockitem
overlay_file config/plank/dock1/launchers/firefox.dockitem
overlay_file config/plank/dock1/launchers/caja.dockitem
overlay_file config/plank/dock1/launchers/matecc.dockitem
fi
overlay_file config/folder-color/hide_donation
overlay_file config/smplayer/smplayer.ini
overlay_file config/tilda/config_0
overlay_file config/Trolltech.conf
# Now that indicators and HUD are enabled by default at the system
# level, any duplicate local autostart files can be removed.
autostart_clean indicator-application.desktop
autostart_clean indicator-sound.desktop
autostart_clean indicator-messages.desktop
autostart_clean indicator-power.desktop
autostart_clean indicator-session.desktop
autostart_clean mate-hud.desktop
autostart_clean ubuntu-mate-welcome.desktop
|