2 echo "#################### generic-desktop-applications.post ####################"
4 # temp workaround to fill each user app_info database with global db infos
5 . /etc/tizen-platform.conf
9 echo "Fixing multiuser app_info dbs"
10 chsmack -a "_" $TZ_SYS_DB/.app_info.db*
11 chmod 764 $TZ_SYS_DB/.app_info.db*
12 echo "Fixing multiuser pkgmgr-info dbs"
13 chsmack -a "_" $TZ_SYS_DB/.pkgmgr*.db*
14 chmod 764 $TZ_SYS_DB/.pkgmgr*.db*
16 # depends on generic-base functions
17 function generic_desktop_applications_fix_userhome() {
20 generic_base_user_exists $user || return 1
21 homedir=$(generic_base_user_home $user)
23 echo "Fix app_info.db of $user"
24 chown -R $user:users $homedir/.applications/dbspace/
28 generic_desktop_applications_fix_userhome app