GVariantBuilder *builder;
GVariant *signal_params;
- snprintf(format, 20, "(s@%s@%s@a{sv})", g_variant_get_type_string(ad->actual_value),
+ snprintf(format, 20, "(is@%s@%s@a{sv})", g_variant_get_type_string(ad->actual_value),
g_variant_get_type_string(ad->allowed_value));
snprintf(objpath, PATH_MAX, "%s/%s", TSM_DBUS_PATH, ad->ds->name);
"killed",
g_variant_new_boolean(ad->ds->process->kill));
+ g_variant_builder_add(builder, "{sv}",
+ "process_name",
+ g_variant_new_string(ad->ds->process->name));
+
+ g_variant_builder_add(builder, "{sv}",
+ "process_state",
+ g_variant_new_string(process_is_foreground(ad->ds->process) ?
+ "foreground" : "background"));
+
signal_params = g_variant_new(format,
+ ad->ds->process->pid,
limit_type_to_string(ad->lt),
ad->actual_value,
ad->allowed_value,