Code

- Hide some warnings that occur if the AppleAquaColorVariant or
authormjwybrow <mjwybrow@users.sourceforge.net>
Sun, 19 Jul 2009 23:44:16 +0000 (23:44 +0000)
committermjwybrow <mjwybrow@users.sourceforge.net>
Sun, 19 Jul 2009 23:44:16 +0000 (23:44 +0000)
    AppleHighlightColor preference values do not exist.

packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/sync_osx_look.sh

index f809e4c5065ce7e06d207fe9c9a863d80978cc65..a44fb2f6a2c8bf0cdbda1eda52439b6b7db29dc9 100755 (executable)
@@ -7,14 +7,14 @@
 #
 
 # Appearance setting
-aquaStyle=`defaults read "Apple Global Domain" AppleAquaColorVariant`
+aquaStyle=`defaults read "Apple Global Domain" AppleAquaColorVariant 2>/dev/null`
 # 1 for aqua, 6 for graphite, inexistant if the default color was never changed
 if [[ "$aquaStyle" == "" ]]; then
        aquaStyle=1             # set aqua as default
 fi
 
 # Highlight Color setting
-hiliColor=`defaults read "Apple Global Domain" AppleHighlightColor`
+hiliColor=`defaults read "Apple Global Domain" AppleHighlightColor 2>/dev/null`
 # a RGB value, with components between 0 and 1, also inexistant if it was not changed
 if [[ "$hiliColor" == "" ]]; then
        hiliColor="0.709800 0.835300 1.000000"  # set blue as default