diff options
Diffstat (limited to 'src/tz-launcher.c')
-rw-r--r-- | src/tz-launcher.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tz-launcher.c b/src/tz-launcher.c index 8f8d9fc..c116c91 100644 --- a/src/tz-launcher.c +++ b/src/tz-launcher.c @@ -51,7 +51,7 @@ gboolean file_is_desktop_file_for_application (GFile *file, gboolean store_values, gchar ***table) { gboolean result; - + gchar *appid; GKeyFile *keyfile = g_key_file_new (); g_key_file_load_from_file (keyfile, g_file_get_path(file), G_KEY_FILE_NONE, NULL); @@ -59,7 +59,13 @@ file_is_desktop_file_for_application (GFile *file, gboolean store_values, gchar gchar **values = g_new (gchar*, 7); values[0] = g_key_file_get_value (keyfile, "Desktop Entry", "Name", &error); values[1] = g_key_file_get_value (keyfile, "Desktop Entry", "Comment", NULL); - values[2] = g_key_file_get_value (keyfile, "Desktop Entry", "Exec", &error); + appid = g_key_file_get_value (keyfile, "Desktop Entry", "X-TIZEN-AppID", NULL); + if (!appid) + values[2] = g_key_file_get_value (keyfile, "Desktop Entry", "Exec", &error); + else { + values[2] = g_strdup_printf ("app_launcher -s %s",appid); + g_free(appid); + } values[3] = g_key_file_get_value (keyfile, "Desktop Entry", "Icon", NULL); values[4] = g_key_file_get_value (keyfile, "Desktop Entry", "Terminal", NULL); values[5] = g_key_file_get_value (keyfile, "Desktop Entry", "Type", &error); |