summaryrefslogtreecommitdiff
path: root/capplet
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2018-12-19 10:00:03 +0800
committerlukefromdc <[email protected]>2018-12-21 22:47:02 +0000
commitfbd7aa888e2bce1c9bb361779bfc572d1abd15f2 (patch)
tree2c74a3f81164c95073b83ea9194cc31edb567e01 /capplet
parent6f1578fbfe2ca41ac0bae4a2abbbf2ddbf828a17 (diff)
downloadmate-session-manager-fbd7aa888e2bce1c9bb361779bfc572d1abd15f2.tar.bz2
mate-session-manager-fbd7aa888e2bce1c9bb361779bfc572d1abd15f2.tar.xz
change app startup dalay where it in system path
Diffstat (limited to 'capplet')
-rw-r--r--capplet/gsp-app.c8
1 files changed, 8 insertions, 0 deletions
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;