* deleting debian/files file from repository
[mdictionary] / debian / whitestork.postinst
1 #!/bin/sh
2
3 echo -e "Postinstalling actions..." 
4
5 if [ "$1" != "upgrade" ]
6 then
7 # End automatically added section
8 echo -e "Creating 'bookmarks' dictionary" 
9 su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Engines/bookmarks/path "/usr/lib/WhiteStork/ws_bookmark.so"'
10 su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/bookmarks/name "Bookmarks"'
11 su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/bookmarks/path "/usr/share/WhiteStork/dictionaries/bookmarks"'
12 su $USER -c 'gconftool-2 --type bool --set /apps/maemo/WhiteStork/Dictionaries/bookmarks/active false'
13 su $USER -c 'gconftool-2 --type bool --set /apps/maemo/WhiteStork/Dictionaries/bookmarks/optimized true'
14
15 echo -e "Changing privilages" 
16 chmod -R 0777 /usr/share/WhiteStork/dictionaries
17
18 fi