summaryrefslogtreecommitdiff
path: root/client/ug-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/ug-client.c')
-rw-r--r--client/ug-client.c6
1 files changed, 5 insertions, 1 deletions
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':