[gnome-initial-setup] copy-worker: Copy the "done" stamp file too
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] copy-worker: Copy the "done" stamp file too
- Date: Tue, 31 Jan 2017 12:27:16 +0000 (UTC)
commit 7106bdb98479142acc5087da3a104df0235baaf6
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Jan 24 19:22:09 2017 +0100
copy-worker: Copy the "done" stamp file too
For consistency, instead of creating the "done" stamp file here, we
can let g-i-s handle that and just copy it along with all the others.
https://bugzilla.gnome.org/show_bug.cgi?id=777707
.../gnome-initial-setup-copy-worker.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/gnome-initial-setup/gnome-initial-setup-copy-worker.c
b/gnome-initial-setup/gnome-initial-setup-copy-worker.c
index 500d274..c041399 100644
--- a/gnome-initial-setup/gnome-initial-setup-copy-worker.c
+++ b/gnome-initial-setup/gnome-initial-setup-copy-worker.c
@@ -71,9 +71,7 @@ main (int argc,
{
GFile *src;
GFile *dest;
- GError *error = NULL;
char *initial_setup_homedir;
- gchar *gis_done_file_path;
initial_setup_homedir = get_gnome_initial_setup_home_dir ();
if (initial_setup_homedir == NULL)
@@ -90,17 +88,11 @@ main (int argc,
#define FILE(path) \
move_file_from_homedir (src, dest, path);
+ FILE (".config/gnome-initial-setup-done");
FILE (".config/run-welcome-tour");
FILE (".config/dconf/user");
FILE (".config/goa-1.0/accounts.conf");
FILE (".local/share/keyrings/login.keyring");
- gis_done_file_path = g_build_filename (g_get_user_config_dir (),
- "gnome-initial-setup-done",
- NULL);
-
- if (!g_file_set_contents (gis_done_file_path, "yes", -1, &error))
- g_warning ("Unable to create %s: %s", gis_done_file_path, error->message);
-
return EXIT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]