X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fgeneric-desktop-applications.post;h=5b639f48d910784f70f274abd4e35dba92c5eb7a;hb=refs%2Fheads%2Ftizen;hp=d644ad09924ae5d1e8eb6dc054c1e5c1b284408e;hpb=85c5240520a4deacc863201f2ec9ed09068cdbe4;p=platform%2Fupstream%2Fmeta-generic.git diff --git a/scripts/generic-desktop-applications.post b/scripts/generic-desktop-applications.post index d644ad0..5b639f4 100644 --- a/scripts/generic-desktop-applications.post +++ b/scripts/generic-desktop-applications.post @@ -1,38 +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 - -# workaround TC-1624 (ail-initdb/pkg_initdb segfault in MIC) -cat >/usr/lib/systemd/system/appfw_initdb.service <<'EOF' -[Unit] -Description=First boot script for init App DB (workaround TC-1624) -ConditionPathExists=!/usr/dbspace/.app_info.db -Before=ac.service - -[Service] -ExecStart=/usr/bin/ail_initdb ; /usr/bin/pkg_initdb -Type=oneshot -RemainAfterExit=yes -EOF -ln -s appfw_initdb.service /usr/lib/systemd/system/graphical.target.wants/ - # 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