Merge "post-umount: add dm-verity-inactivated.umount script" into tizen
[platform/upstream/meta-generic.git] / scripts / generic-desktop-applications.post
index 684d4ab..5b639f4 100644 (file)
@@ -1,40 +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*
-
 # 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/
-
-       if [ -f $homedir/.applications/dbspace/.app_info.db ]; then
-               sqlite3 $homedir/.applications/dbspace/.app_info.db <<EOF
-attach database '$TZ_SYS_DB/.app_info.db' as common;
-insert into app_info select * from common.app_info;
-EOF
-       else
-               cp $TZ_SYS_DB/.app_info.db $homedir/.applications/dbspace/.app_info.db
-       fi
 
+       echo "Fix app_info.db of $user"
        chown -R $user:users $homedir/.applications/dbspace/
-       chsmack -a User $homedir/.applications/dbspace/.app_info.db*
 }
 
-# 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