remove hardcoded path for multiuser support 57/17857/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_common accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common accepted/tizen/generic/20140408.111137 accepted/tizen/ivi/20140409.182430 accepted/tizen/ivi/panda/20140408.203101 submit/tizen/20140408.110500 submit/tizen_common/20140521.232441 submit/tizen_common/20140522.140947 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Wed, 12 Feb 2014 16:42:03 +0000 (17:42 +0100)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Tue, 11 Mar 2014 13:43:42 +0000 (14:43 +0100)
Bug-Tizen: PTREL-293

Change-Id: I9993164e3bed70648b2d9a7b6519fe3c53c96b79
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
packaging/usb-syspopup.spec

index 8de246f..ad2d574 100644 (file)
@@ -32,6 +32,7 @@ BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(appsvc)
 BuildRequires:  pkgconfig(pmapi)
 BuildRequires:  pkgconfig(syspopup)
+BuildRequires:  pkgconfig(libtzplatform-config)
 
 %description
 Description: USB system popup
@@ -70,18 +71,19 @@ rm -rf %{buildroot}
 
 
 %post
-vconftool set -t int db/setting/select_popup_btn "0" -u 5000 -f
+users_gid=$(getent group $TZ_SYS_USER_GROUP | cut -f3 -d':') 
+vconftool set -t int db/setting/select_popup_btn "0" -u $users_gid -f
 
 %files
 %manifest %{name}.manifest
 %defattr(440,root,root,-)
-%attr(540,app,app) %{_prefix}/apps/org.tizen.usb-syspopup/bin/usb-syspopup
-%attr(440,app,app) %{_prefix}/apps/org.tizen.usb-syspopup/res/locale/*/LC_MESSAGES/usb-syspopup.mo
-%{_datarootdir}/packages/org.tizen.usb-syspopup.xml
+%attr(550,root,%TZ_SYS_USER_GROUP) %TZ_SYS_RO_APP/org.tizen.usb-syspopup/bin/usb-syspopup
+%attr(440,root,%TZ_SYS_USER_GROUP) %TZ_SYS_RO_APP/org.tizen.usb-syspopup/res/locale/*/LC_MESSAGES/usb-syspopup.mo
+%TZ_SYS_RO_PACKAGES/org.tizen.usb-syspopup.xml
 
 %files -n org.tizen.usbotg-syspopup
 %manifest %{name}.manifest
 %defattr(440,root,root,-)
-%attr(540,app,app) %{_prefix}/apps/org.tizen.usbotg-syspopup/bin/usbotg-syspopup
-%{_datarootdir}/packages/org.tizen.usbotg-syspopup.xml
-%attr(440,app,app) %{_prefix}/apps/org.tizen.usbotg-syspopup/res/icons/usb_icon.png
+%attr(550,root,%TZ_SYS_USER_GROUP) %TZ_SYS_RO_APP/org.tizen.usbotg-syspopup/bin/usbotg-syspopup
+%TZ_SYS_RO_PACKAGES/org.tizen.usbotg-syspopup.xml
+%attr(440,root,%TZ_SYS_USER_GROUP) %TZ_SYS_RO_APP/org.tizen.usbotg-syspopup/res/icons/usb_icon.png