From 84e96d9771e63697c632eac4d4172020f1a225de Mon Sep 17 00:00:00 2001 From: showching Date: Mon, 26 Feb 2018 18:36:50 +0800 Subject: [PATCH] add user friendly error text if no saved profiles, possibly on a newly installed system. --- apply-colors.sh | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 apply-colors.sh diff --git a/apply-colors.sh b/apply-colors.sh old mode 100644 new mode 100755 index 11d1092..8d7a86b --- a/apply-colors.sh +++ b/apply-colors.sh @@ -245,6 +245,13 @@ else unset DCONF unset UUIDGEN exit 0 + else + # provide a user friendly error text if no saved profile exists, otherwise it will display "Error gconftool not found!" + # it could happen on a newly installed system. (happened on CentOS 7) + echo "Error, no saved profiles found!" + echo "Possible fix, new a profile (Terminal > Edit > Preferences > Profiles > New, then Close) and try again." + echo "You can safely delete the created profile after the installation." + exit 1 fi fi