Add the session bus environment 38/77238/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 29 Jun 2016 06:58:32 +0000 (15:58 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 29 Jun 2016 07:37:34 +0000 (16:37 +0900)
Change-Id: Id55c24607dbcd73d57eb53446abbfabc1870dcd0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluetooth-share.service
packaging/bluetooth-share.spec

index 7f60913..9482693 100644 (file)
@@ -8,3 +8,4 @@ SupplementaryGroups=priv_mediastorage priv_externalstorage
 Type=simple
 ExecStart=/usr/bin/bluetooth-share
 KillMode=process
+Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5001/dbus/user_bus_socket
\ No newline at end of file
index 97efb87..aa1a223 100644 (file)
@@ -84,9 +84,9 @@ make
 install -D -m 0755 %{SOURCE1004} %{buildroot}%{TZ_SYS_DATA}/%{name}/init_db.sh
 install -D -m 0644 packaging/bluetooth-share.service %{buildroot}%{_libdir}/systemd/system/bluetooth-share.service
 
-#%post
-#/sbin/ldconfig
-#%{TZ_SYS_DATA}/%{name}/init_db.sh
+%post
+/sbin/ldconfig
+%{TZ_SYS_DATA}/%{name}/init_db.sh
 
 %post -n libbluetooth-share-devel -p /sbin/ldconfig