blob: 40f4597f78523fbc9e95e2d958430c6b860c9fce (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#!/bin/sh
echo "#################### common-wayland.post ##################"
# add 'app' and other users to display group
for user in alice bob carol guest app; do
if generic_base_user_exists $user; then
/usr/sbin/groupmod -A $user display
fi
done
# Enable a logind session for users on seat0 (the default seat for
# graphical sessions)
unitdir=/usr/lib/systemd/system
mkdir -p $unitdir/graphical.target.wants
for user in app alice bob carol guest; do
generic_base_user_exists $user || continue
uid=$(getent passwd $user|cut -f3 -d':')
ln -s ../user-session-launch@.service $unitdir/graphical.target.wants/user-session-launch@seat0-$uid.service
done
# user sessions must start after graphical target
patch -b -p1 -d/ <<'EOF'
--- /lib/systemd/system/user-session-launch@.service.orig 2014-03-17 17:50:18.000000000 -0700
+++ /lib/systemd/system/user-session-launch@.service 2014-04-15 06:03:45.555682575 -0700
@@ -1,7 +1,7 @@
[Unit]
Description=User Session Launcher
-After=systemd-user-sessions.service systemd-logind.service
-Requires=systemd-logind.service
+After=systemd-user-sessions.service systemd-logind.service display-manager.path
+Requires=systemd-logind.service display-manager.path
[Service]
ExecStart=/usr/bin/user-session-launch %i
EOF
# clean weston target inside user session (installed by weston)
rm -f /usr/lib/systemd/user/weston.target
#{ Add installed apps for tizen to launcher if not present
dst="/usr/share/applications/tizen/launcher.conf"
if [ -w "$dst" ] ; then
ls /usr/share/applications/tizen/*.desktop \
| while read src; do
grep "$src" "$dst" \
|| { [ ! -r "$src" ] || echo "$src" >> "$dst" ; }
done
fi
#}
# tag the background image with the current snapshot id
arch=$(rpm -qa | grep kernel-common | awk -F- '{printf("%s %s",$3,$4);}')
/usr/bin/mark_image.py /usr/share/backgrounds/tizen/current "Tizen Common: @BUILD_ID@ $arch" ffffff 50 90 95 95
|