From fbd7aa888e2bce1c9bb361779bfc572d1abd15f2 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 19 Dec 2018 10:00:03 +0800 Subject: change app startup dalay where it in system path --- capplet/gsp-app.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/capplet/gsp-app.c b/capplet/gsp-app.c index f62228e..1e970e6 100644 --- a/capplet/gsp-app.c +++ b/capplet/gsp-app.c @@ -320,6 +320,7 @@ _gsp_app_user_equal_system (GspApp *app, char *path; char *str; GKeyFile *keyfile; + guint delay; manager = gsp_app_manager_get (); priv = gsp_app_get_instance_private (app); @@ -390,6 +391,13 @@ _gsp_app_user_equal_system (GspApp *app, } g_free (str); + delay = gsp_key_file_get_delay(keyfile); + if (delay != priv->delay) { + g_free (path); + g_key_file_free (keyfile); + return FALSE; + } + g_key_file_free (keyfile); *system_path = path; -- cgit v1.2.1