Merge "post-umount: add dm-verity-inactivated.umount script" into tizen
[platform/upstream/meta-generic.git] / scripts / generic-desktop-applications.post
index f5365a8..5b639f4 100644 (file)
@@ -1,31 +1,19 @@
 #!/bin/sh
 echo "#################### generic-desktop-applications.post ####################"
 
-# temp workaround to fill each user app_info database with global db infos
-. /etc/tizen-platform.conf
-ail_initdb
-pkg_initdb
-
-echo "Fixing multiuser app_info dbs"
-chsmack -a "_" $TZ_SYS_DB/.app_info.db*
-chmod 764 $TZ_SYS_DB/.app_info.db*
-echo "Fixing multiuser pkgmgr-info dbs"
-chsmack -a "_" $TZ_SYS_DB/.pkgmgr*.db*
-chmod 764 $TZ_SYS_DB/.pkgmgr*.db*
-
 # depends on generic-base functions
 function generic_desktop_applications_fix_userhome() {
        user=$1
 
        generic_base_user_exists $user || return 1
        homedir=$(generic_base_user_home $user)
-       
+
        echo "Fix app_info.db of $user"
        chown -R $user:users $homedir/.applications/dbspace/
 }
 
-# fix app user
-generic_desktop_applications_fix_userhome app
-
-
+# fix TC-320 for SDK
+. /etc/tizen-build.conf
+# Disable to run below line because this results in always failure, so it can be regarded as useless.
+#[ "${TZ_BUILD_WITH_EMULATOR}" == "1" ] && generic_desktop_applications_fix_userhome developer