1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

Merge pull request #208 from grooveshaker/xfce4-terminal

Copy xfce4 terminalrc if it's available
This commit is contained in:
Mayccoll 2019-12-29 13:45:55 -05:00 committed by GitHub
commit 33881dd4d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 writable!"
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}"