summaryrefslogtreecommitdiff
path: root/src/rua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rua.c')
-rw-r--r--src/rua.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/rua.c b/src/rua.c
index 91fd385..a3f24c5 100644
--- a/src/rua.c
+++ b/src/rua.c
@@ -134,8 +134,8 @@ API int rua_clear_history(void)
API int rua_history_load_db_for_uid(char ***table, int *nrows, int *ncols, uid_t uid)
{
static const char query[] =
- "SELECT pkg_name, app_path, arg, launch_time, instance_id,"
- " instance_name, icon, uri, image "
+ "SELECT pkg_name, app_path, arg, launch_time, comp_id,"
+ " instance_id, instance_name, icon, uri, image "
"FROM rua_history ORDER BY launch_time DESC";
int r;
char *db_err = NULL;
@@ -247,6 +247,12 @@ API int rua_history_get_rec(struct rua_rec *rec, char **table, int nrows, int nc
if (tmp)
rec->launch_time = atoi(tmp);
+ tmp = db_result[RUA_COL_COMP_ID];
+ if (tmp && tmp[0] != '\0')
+ rec->comp_id = tmp;
+ else
+ rec->comp_id = NULL;
+
tmp = db_result[RUA_COL_INSTANCE_ID];
if (tmp && tmp[0] != '\0')
rec->instance_id = tmp;