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:
commit
33881dd4d3
@ -542,8 +542,12 @@ apply_xfce4-terminal() {
|
|||||||
CONFFILE="${HOME}/.config/xfce4/terminal/terminalrc"
|
CONFFILE="${HOME}/.config/xfce4/terminal/terminalrc"
|
||||||
|
|
||||||
if [[ ! (-w "${CONFFILE}") ]]; then
|
if [[ ! (-w "${CONFFILE}") ]]; then
|
||||||
echo "ERROR: config file not present or not writable!"
|
if [[ -r "${XDG_CONFIG_DIRS%%:*}/Terminal/terminalrc" ]]; then
|
||||||
exit 1
|
cp "${XDG_CONFIG_DIRS%%:*}/Terminal/terminalrc" ${CONFFILE}
|
||||||
|
else
|
||||||
|
echo "ERROR: config file not present or not writable!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -d "${SCHEMEDIR}" ]] || mkdir -p "${SCHEMEDIR}"
|
[[ -d "${SCHEMEDIR}" ]] || mkdir -p "${SCHEMEDIR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user