Skip to content

Commit

Permalink
Do not delete the shared-data-dir of user root
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuanpeng committed Jul 1, 2024
1 parent 3abc9fb commit 60db08b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shared-data-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ next_user_dirs_cb (GObject *object, GAsyncResult *res, gpointer user_data)
CommonUser *user = link->data;
g_hash_table_remove (priv->starting_dirs, common_user_get_name (user));
}
if(g_hash_table_contains(priv->starting_dirs,"root"))
{
g_hash_table_remove (priv->starting_dirs,"root");
}
g_hash_table_foreach (priv->starting_dirs, delete_unused_user, manager);
g_hash_table_destroy (priv->starting_dirs);
priv->starting_dirs = NULL;
Expand Down

0 comments on commit 60db08b

Please sign in to comment.