Fix developer home directory creation (emulator only)
[platform/upstream/meta-generic.git] / scripts / generic-desktop-applications.post
1 #!/bin/sh
2 echo "#################### generic-desktop-applications.post ####################"
3
4 # temp workaround to fill each user app_info database with global db infos
5 . /etc/tizen-platform.conf
6 ail_initdb
7 pkg_initdb
8
9 # depends on generic-base functions
10 function generic_desktop_applications_fix_userhome() {
11         user=$1
12
13         generic_base_user_exists $user || return 1
14         homedir=$(generic_base_user_home $user)
15         
16         echo "Fix app_info.db of $user"
17         chown -R $user:users $homedir/.applications/dbspace/
18 }
19
20 # fix TC-320 for SDK
21 . /etc/tizen-build.conf
22 [ "${TZ_BUILD_WITH_EMULATOR}" == "1" ] && generic_desktop_applications_fix_userhome developer
23