Change-Id: If551cb57705f70522c7cbd8cda92dbff9653cbd9
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
#include "Bus.h"
#include <AppCommon.h>
#include "Bus.h"
#include <AppCommon.h>
+#define ADDRESS_BUF_MAX 128
+
+/* FIXME: fix seat id, it should be changed */
#define TLM_SEAT_ID "seat0"
#define TLM_SEAT_ID "seat0"
-#define TLM_DBUS_ROOT_SOCKET_PATH "/var/run/tlm/dbus-sock"
+#define TLM_DBUS_SOCKET_PATH "/var/run/tlm/"
struct SBus {
CBus::SCallback cb;
struct SBus {
CBus::SCallback cb;
*/
static GDBusConnection *_get_bus_connection(GError **error)
{
*/
static GDBusConnection *_get_bus_connection(GError **error)
{
-#define ADDRESS_BUF_MAX 128
gchar address[ADDRESS_BUF_MAX];
gchar address[ADDRESS_BUF_MAX];
- g_snprintf(address, ADDRESS_BUF_MAX - 1, "unix:path=%s",
- TLM_DBUS_ROOT_SOCKET_PATH);
+ g_snprintf(address, ADDRESS_BUF_MAX - 1, "unix:path=%s%s-%u",
+ TLM_DBUS_SOCKET_PATH, TLM_SEAT_ID, getuid());
return g_dbus_connection_new_for_address_sync(address,
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT, NULL,
return g_dbus_connection_new_for_address_sync(address,
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT, NULL,