From d05e5d214eda64f558b60e095a57ce14762ebcf0 Mon Sep 17 00:00:00 2001 From: "Q, Ren-queue" <59303262+grooveshaker@users.noreply.github.com> Date: Sat, 28 Dec 2019 20:30:43 +0900 Subject: [PATCH] Copy xfce4 terminalrc if it's available --- apply-colors.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apply-colors.sh b/apply-colors.sh index 98d1db2..26dcdf5 100644 --- a/apply-colors.sh +++ b/apply-colors.sh @@ -542,8 +542,12 @@ apply_xfce4-terminal() { CONFFILE="${HOME}/.config/xfce4/terminal/terminalrc" if [[ ! (-w "${CONFFILE}") ]]; then - echo "ERROR: config file not present or not writeable!" - exit 1 + if [[ -r "${XDG_CONFIG_DIRS%%:*}/Terminal/terminalrc" ]]; then + cp "${XDG_CONFIG_DIRS%%:*}/Terminal/terminalrc" ${CONFFILE} + else + echo "ERROR: config file not present or not writable!" + exit 1 + fi fi [[ -d "${SCHEMEDIR}" ]] || mkdir -p "${SCHEMEDIR}"