4 echo -e "\n* AddDict utility - tool for adding dictionaries to GConf *\n"
5 echo -e "Usage:\n\n./add_dict <dictionary_file> <name_of_dictionary>\n"
9 echo "Dictionary name wasn't specified. Run without parameters to get help."
12 gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/$2/name "$2"
13 gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/$2/path "`pwd`/$1"
14 gconftool-2 --type boolean --set /apps/maemo/WhiteStork/Dictionaries/$2/active false
15 gconftool-2 --type boolean --set /apps/maemo/WhiteStork/Dictionaries/$2/optimized false
16 gconftool-2 -R /apps/maemo/WhiteStork/Dictionaries/$2
18 echo "Dictionary file couldn't be found. Run without parameters to get help."