diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-12-16 10:13:41 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-12-16 12:46:48 +0100 |
commit | 87d24047f674ca941e2691602da2501945a82330 (patch) | |
tree | 9eedeaa5a7537f00c62b6c57e31de42a094e5408 /src/nautilus-application.c | |
parent | 7b87e269473f84303a507140d5b2aa6eb87b3e6d (diff) | |
download | nautilus-87d24047f674ca941e2691602da2501945a82330.tar.gz |
general: remove convert metadata
Major enterprise distributions already moved to gnome 3, and if they
don't already is unlikely they are going to do an upgrade mechanism on
their clients from gnome 2 to gnome 3.20.
So remove the conversion of metadata that was done for initial support
of upgrade from gnome 2 to gnome 3.
Diffstat (limited to 'src/nautilus-application.c')
-rw-r--r-- | src/nautilus-application.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c index 260d966a6..cba275c20 100644 --- a/src/nautilus-application.c +++ b/src/nautilus-application.c @@ -275,60 +275,6 @@ mark_desktop_files_trusted (void) g_free (do_once_file); } -static void -do_upgrades_once (NautilusApplication *self) -{ - char *metafile_dir, *updated, *nautilus_dir, *xdg_dir; - const gchar *message; - int fd, res; - - mark_desktop_files_trusted (); - - metafile_dir = g_build_filename (g_get_home_dir (), - ".nautilus/metafiles", NULL); - if (g_file_test (metafile_dir, G_FILE_TEST_IS_DIR)) { - updated = g_build_filename (metafile_dir, "migrated-to-gvfs", NULL); - if (!g_file_test (updated, G_FILE_TEST_EXISTS)) { - g_spawn_command_line_async (LIBEXECDIR"/nautilus-convert-metadata --quiet", NULL); - fd = g_creat (updated, 0600); - if (fd != -1) { - close (fd); - } - } - g_free (updated); - } - g_free (metafile_dir); - - nautilus_dir = g_build_filename (g_get_home_dir (), - ".nautilus", NULL); - xdg_dir = nautilus_get_user_directory (); - if (g_file_test (nautilus_dir, G_FILE_TEST_IS_DIR)) { - /* test if we already attempted to migrate first */ - updated = g_build_filename (nautilus_dir, "DEPRECATED-DIRECTORY", NULL); - message = _("Nautilus 3.0 deprecated this directory and tried migrating " - "this configuration to ~/.config/nautilus"); - if (!g_file_test (updated, G_FILE_TEST_EXISTS)) { - /* rename() works fine if the destination directory is - * empty. - */ - res = g_rename (nautilus_dir, xdg_dir); - - if (res == -1) { - fd = g_creat (updated, 0600); - if (fd != -1) { - res = write (fd, message, strlen (message)); - close (fd); - } - } - } - - g_free (updated); - } - - g_free (nautilus_dir); - g_free (xdg_dir); -} - NautilusWindow * nautilus_application_create_window (NautilusApplication *application, GdkScreen *screen) @@ -1061,8 +1007,6 @@ nautilus_application_startup (GApplication *app) */ check_required_directories (self); - do_upgrades_once (self); - nautilus_init_application_actions (self); init_desktop (self); |