20804N/A--- nautilus-3.1.3/src/nautilus-application.c.orig 2011-07-21 14:28:55.288946139 +0100
20804N/A+++ nautilus-3.1.3/src/nautilus-application.c 2011-07-21 14:39:32.207221337 +0100
20804N/A@@ -750,6 +750,35 @@
14181N/A }
14181N/A
14181N/A static void
14181N/A+check_star_icon (void)
14181N/A+{
20804N/A+ char *desktop_file;
20804N/A+ char *system_file;
20804N/A+ char *desktop_path;
20804N/A+ struct stat desktop_buf;
14181N/A+
20804N/A+ desktop_path = nautilus_get_desktop_directory ();
20804N/A+ desktop_file = g_build_filename (desktop_path,
20804N/A+ "star.desktop",
20804N/A+ NULL);
20804N/A+ if (g_stat (desktop_file, &desktop_buf) == 0) {
20804N/A+ struct stat system_buf;
20804N/A+ system_file = g_build_filename (DATADIR "/applications",
20804N/A+ "star.desktop",
20804N/A+ NULL);
20804N/A+ if (g_stat (system_file, &system_buf) == 0) {
20804N/A+ if (desktop_buf.st_size != system_buf.st_size) {
20804N/A+ g_unlink(desktop_file);
20804N/A+ }
20804N/A+ }
20804N/A+ g_free (system_file);
20804N/A+ }
14181N/A+
20804N/A+ g_free (desktop_file);
20804N/A+ g_free (desktop_path);
14181N/A+}
14181N/A+
14181N/A+static void
15587N/A open_windows (NautilusApplication *application,
20804N/A GFile **files,
20804N/A gint n_files,
20804N/A@@ -1174,6 +1203,8 @@
20804N/A /* register property pages */
20804N/A nautilus_image_properties_page_register ();
14181N/A
20804N/A+ check_star_icon();
20804N/A+
20804N/A /* initialize theming */
20804N/A init_icons_and_styles ();
20804N/A init_gtk_accels ();