-/* expire g_user_special_dirs if the config file
- * was modified between different reads
- */
-static void
-maybe_expire_user_special_dirs (void)
-{
- gchar *config_file;
- struct stat stat_buf;
- time_t now;
-
- /* don't stat() the file more often than necessary */
- time (&now);
- if (now < g_user_special_dirs_stat_time + 5)
- return;
-
- g_user_special_dirs_stat_time = now;
-
- config_file = g_build_filename (g_user_config_dir,
- "user-dirs.dirs",
- NULL);
-
- if (stat (config_file, &stat_buf) < 0)
- goto out;
-
- if (stat_buf.st_mtime != g_user_special_dirs_mtime &&
- g_user_special_dirs != NULL)
- {
- gint i;
-
- for (i = 0; i < G_USER_N_DIRECTORIES; i++)
- g_free (g_user_special_dirs[i]);
-
- g_free (g_user_special_dirs);
- g_user_special_dirs = NULL;
- }
-
- g_user_special_dirs_mtime = stat_buf.st_mtime;
-
-out:
- g_free (config_file);
-}
-
-
-static void g_init_user_config_dir (void);
-