We remove bt-share hardcoded path for multiuser support.
Change-Id: I4e90c4a4b40775fa08a9b16c3a1eac0759dbc514
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(BINDIR "/usr/bin")
SET(EXEC_PREFIX "\${prefix}")
SET(INCLUDEDIR "/usr/include")
SET(VERSION 1.0)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} -L${CMAKE_CURRENT_SOURCE_DIR}/../lib -lbluetooth-share-api)
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/bluetooth-share.rule DESTINATION ${TZ_SYS_ETC}/smack/accesses.d)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/org.bluetooth.share.service DESTINATION share/dbus-1/system-services)
#include <glib.h>
#include <dbus/dbus-glib.h>
#include <notification.h>
+#include <tzplatform_config.h>
#ifndef PACKAGE_NAME
#define PACKAGE_NAME "bluetooth-share"
#endif
#define UI_PACKAGE "org.tizen.bluetooth-share-ui"
-#define UI_PKG_PATH "/opt/apps/org.tizen.bluetooth-share-ui/bin/bluetooth-share-ui"
+#define UI_PKG_PATH tzplatform_mkpath(TZ_SYS_RW_APP, \
+ "org.tizen.bluetooth-share-ui/bin/bluetooth-share-ui")
typedef void (*bt_app_cb) (void *, void *, void *);
#include <glib.h>
#include <notification.h>
+#include <tzplatform_config.h>
#include "bt-share-main.h"
-#define BT_SHARE_BIN_PATH "/usr/bin/bluetooth-share"
+#define BT_SHARE_BIN_PATH tzplatform_mkpath(TZ_SYS_BIN, "bluetooth-share")
-#define QP_NO_APP_LAUNCH NOTIFICATION_PROP_DISABLE_APP_LAUNCH
+#define QP_NO_APP_LAUNCH NOTIFICATION_PROP_DISABLE_APP_LAUNCH
#define QP_NO_TICKER NOTIFICATION_PROP_DISABLE_TICKERNOTI
#define QP_NO_DELETE (NOTIFICATION_PROP_DISABLE_AUTO_DELETE | NOTIFICATION_PROP_VOLATILE_DISPLAY)
#endif
#include <libintl.h>
+#include <tzplatform_config.h>
/*============== String ================= */
#define BT_COMMON_PKG "ug-setting-bluetooth-efl"
dgettext(BT_COMMON_PKG, "IDS_BT_BODY_BLUETOOTH_AVAILABLE")
/*============== Image ================= */
-#define ICONDIR "/opt/apps/org.tizen.bluetooth-share-ui/res/images"
+#define ICONDIR "org.tizen.bluetooth-share-ui/res/images"
+
#define BT_ICON_PATH_MAX 256
-#define BT_ICON_QP_SEND ICONDIR"/Q02_icon_BT_transmit.png"
-#define BT_ICON_QP_RECEIVE ICONDIR"/Q02_icon_BT_receive.png"
-#define BT_ICON_QP_BT_ON ICONDIR"/Q02_Notification_bluetooth.png"
+#define BT_ICON_QP_SEND tzplatform_mkpath3(TZ_SYS_RW_APP, ICONDIR, \
+ "/Q02_icon_BT_transmit.png")
+#define BT_ICON_QP_RECEIVE tzplatform_mkpath3(TZ_SYS_RW_APP, ICONDIR, \
+ "/Q02_icon_BT_receive.png")
+#define BT_ICON_QP_BT_ON tzplatform_mkpath3(TZ_SYS_RW_APP, ICONDIR, \
+ "/Q02_Notification_bluetooth.png")
#ifdef __cplusplus