2 echo "#################### generic-desktop-applications.post ####################"
4 function generic_desktop_applications_buxton_unprotect() {
5 chsmack -a '*' /var/lib/buxton2 || true
6 chsmack -a '*' /var/lib/buxton2/* || true
7 chmod 0777 /var/lib/buxton2 || true
8 chmod 0666 /var/lib/buxton2/* || true
11 function generic_desktop_applications_buxton_protect() {
12 chmod 0600 /var/lib/buxton2/* || true
13 chmod 0700 /var/lib/buxton2 || true
14 chsmack -a System /var/lib/buxton2/* || true
15 chsmack -a System /var/lib/buxton2 || true
18 # temp workaround to fill each user app_info database with global db infos
19 . /etc/tizen-platform.conf
20 generic_desktop_applications_buxton_unprotect
23 generic_desktop_applications_buxton_protect
25 # depends on generic-base functions
26 function generic_desktop_applications_fix_userhome() {
29 generic_base_user_exists $user || return 1
30 homedir=$(generic_base_user_home $user)
32 echo "Fix app_info.db of $user"
33 chown -R $user:users $homedir/.applications/dbspace/
37 . /etc/tizen-build.conf
38 [ "${TZ_BUILD_WITH_EMULATOR}" == "1" ] && generic_desktop_applications_fix_userhome developer