diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/CMakeLists.txt | 2 | ||||
-rw-r--r-- | client/ug-client.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 35f00af..875d87f 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -1,7 +1,7 @@ SET(CLIENT ug-client) SET(CLIENT_SRCS ug-client.c) SET(CLIENT_VENDOR samsung) -SET(CLIENT_DIR /usr/bin) +SET(CLIENT_DIR ${TZ_SYS_BIN}) SET(CLIENT_LOCALEDIR /usr/share/locale) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/client/ug-client.c b/client/ug-client.c index 46bd4e7..ecaf16b 100644 --- a/client/ug-client.c +++ b/client/ug-client.c @@ -35,10 +35,14 @@ #include "ug-client.h" +#include <tzplatform_config.h> + #ifdef LOG_TAG #undef LOG_TAG #endif +#define PATH_UG_LAUNCHER tzplatform_mkpath(TZ_SYS_BIN,"ug-launcher") + #define LOG_TAG "UI_GADGET_CLIENT" static void prt_usage(const char *cmd) @@ -439,7 +443,7 @@ int main(int argc, char *argv[]) cmdlen = strlen(argv[0]); if (strncmp(argv[0], "ug-launcher", cmdlen) == 0 - || strncmp(argv[0], "/usr/bin/ug-launcher", cmdlen) == 0) { + || strncmp(argv[0], PATH_UG_LAUNCHER , cmdlen) == 0) { while ((opt = getopt(argc, argv, "n:d:")) != -1) { switch (opt) { case 'n': |