blob: 8628a182622678786911fc72ac763d0e7a4e3b95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
############### common-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*
for user in alice bob carol guest app; do
[ ! -d /home/$user ] && continue
echo "Fix app_info.db of $user"
chown -R $user:users /home/$user/.applications/dbspace/
if [ -f /home/$user/.applications/dbspace/.app_info.db ]; then
sqlite3 /home/$user/.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 /home/$user/.applications/dbspace/.app_info.db
fi
chown -R $user:users /home/$user/.applications/dbspace/
chsmack -a User /home/$user/.applications/dbspace/.app_info.db*
done
if [ -f /usr/bin/weston ]; then
cat >>/etc/xdg/weston/weston.ini <<EOF
## desktop applications ##
[launcher]
icon=/usr/share/icons/tizen/32x32/calculator.png
path=/usr/apps/org.tizen.calculator/bin/calculator
EOF
fi
|