summaryrefslogtreecommitdiff
path: root/packaging/status.spec
diff options
context:
space:
mode:
authorSabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>2014-03-24 15:47:47 +0100
committerSabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>2014-03-26 10:21:55 +0100
commit8ee84799f49586ba83c7865a8e22ea6b5b26b86d (patch)
treebf09ab1dcd85c0e2ea28ac925761c255d84b1c05 /packaging/status.spec
parent2afa6a6447a70d20f63c67d5ae59cf26608146d9 (diff)
downloadstatus-tizen.tar.gz
status-tizen.tar.bz2
status-tizen.zip
Remove hardcoded path for multiuser supportHEADtizen
Change-Id: I63336002af00d4151150797b2c9cf58929b01d33 Bug-Tizen: PTREL-768 Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Diffstat (limited to 'packaging/status.spec')
-rwxr-xr-xpackaging/status.spec16
1 files changed, 9 insertions, 7 deletions
diff --git a/packaging/status.spec b/packaging/status.spec
index 0f499c8..6f93910 100755
--- a/packaging/status.spec
+++ b/packaging/status.spec
@@ -11,6 +11,7 @@ BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(aul)
BuildRequires: cmake
+BuildRequires: pkgconfig(libtzplatform-config)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -42,15 +43,16 @@ cp -f LICENSE %{buildroot}/usr/share/license/%{name}
%post
+users_gid=$(getent group %{TZ_SYS_USER_GROUP} | cut -f3 -d':')
init_vconf()
{
- vconftool set -t int memory/private/libstatus/music/state 0 -i -g 5000
- vconftool set -t int memory/private/libstatus/radio/state 0 -i -g 5000
- vconftool set -t int memory/private/libstatus/vr/state 0 -i -g 5000
- vconftool set -t int memory/private/libstatus/music/pid -1 -i -g 5000
- vconftool set -t int memory/private/libstatus/radio/pid -1 -i -g 5000
- vconftool set -t int memory/private/libstatus/vr/pid -1 -i -g 5000
- vconftool set -t string memory/private/libstatus/message "" -i -g 5000
+ vconftool set -t int memory/private/libstatus/music/state 0 -i -g $users_gid
+ vconftool set -t int memory/private/libstatus/radio/state 0 -i -g $users_gid
+ vconftool set -t int memory/private/libstatus/vr/state 0 -i -g $users_gid
+ vconftool set -t int memory/private/libstatus/music/pid -1 -i -g $users_gid
+ vconftool set -t int memory/private/libstatus/radio/pid -1 -i -g $users_gid
+ vconftool set -t int memory/private/libstatus/vr/pid -1 -i -g $users_gid
+ vconftool set -t string memory/private/libstatus/message "" -i -g $users_gid
}
/sbin/ldconfig