blob: c855032ebbe35c7c01e52f698b86dba8007302df (
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
|
#################### common-wayland.post ##################
# Add 'app' user to the display group
/usr/sbin/groupmod -A app display
# add other users to display group
for user in alice bob carol guest; do
/usr/sbin/groupmod -A $user display
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
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
#}
|