mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Merge pull request #82 from Prgrmman/master
apply-colors.sh: added error handling message to gconftools
This commit is contained in:
commit
28d6006329
@ -175,7 +175,17 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Fallback for Gnome 2 and early Gnome 3
|
# Fallback for Gnome 2 and early Gnome 3
|
||||||
[[ -z "$GCONFTOOL" ]] && GCONFTOOL=gconftool
|
|
||||||
|
# error handling on gconftool
|
||||||
|
if [[ -z "$GCONFTOOL" ]]; then
|
||||||
|
GCONFTOOL=$(which gconftool 2>/dev/null)
|
||||||
|
if [[ "$?" -ne 0 ]]; then
|
||||||
|
echo "Error gconftool not found!"
|
||||||
|
echo "Possible fix, enter the following and run again:"
|
||||||
|
echo "export GCONFTOOL=/path/to/gconftool/"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
[[ -z "$BASE_KEY" ]] && BASE_KEY=/apps/gnome-terminal/profiles
|
[[ -z "$BASE_KEY" ]] && BASE_KEY=/apps/gnome-terminal/profiles
|
||||||
|
|
||||||
PROFILE_KEY="$BASE_KEY/$PROFILE_SLUG"
|
PROFILE_KEY="$BASE_KEY/$PROFILE_SLUG"
|
||||||
|
Loading…
Reference in New Issue
Block a user