summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Ferraris <arnaud.ferraris@collabora.com>2022-01-12 16:32:12 +0100
committerArnaud Ferraris <arnaud.ferraris@collabora.com>2022-01-12 16:32:12 +0100
commit385b3fa50ce2dd299645eda768c08c8beb6905ec (patch)
tree14b2c6624ad08f7277b1acb32be19de5aa8d56f8
parent365f6130c025e2a034ecabed95ee59af08a1613a (diff)
process_manager: mark started apps as running
Without this change, we don't properly keep track of running apps, and end up starting multiple instances of those. Bug-AGL: SPEC-4160 Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Change-Id: I070264f5d12c1c84a520537612518ab2837507d7
-rw-r--r--src/process_manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process_manager.c b/src/process_manager.c
index 023894a..ad3ea33 100644
--- a/src/process_manager.c
+++ b/src/process_manager.c
@@ -212,6 +212,7 @@ gboolean process_manager_start_app(ProcessManager *self,
self);
self->process_data = g_list_append(self->process_data, runtime_data);
app_info_set_runtime_data(app_info, runtime_data);
+ app_info_set_status(app_info, APP_STATUS_RUNNING);
g_signal_emit(self, signals[STARTED], 0, app_id);