nautilus-10-star-desktop.diff revision 15587
15587N/A--- /usr/tmp/nautilus-2.25.2/src/nautilus-application.c 2008-12-15 15:54:24.000000000 +0000
15587N/A+++ nautilus-2.25.2/src/nautilus-application.c 2009-01-02 09:43:12.852217000 +0000
15587N/A@@ -546,6 +549,35 @@
14181N/A }
14181N/A
14181N/A static void
14181N/A+check_star_icon (void)
14181N/A+{
15587N/A+ char *desktop_file;
15587N/A+ char *system_file;
15587N/A+ char *desktop_path;
15587N/A+ struct stat desktop_buf;
14181N/A+
15587N/A+ desktop_path = nautilus_get_desktop_directory ();
15587N/A+ desktop_file = g_build_filename (desktop_path,
15587N/A+ "star.desktop",
15587N/A+ NULL);
15587N/A+ if (g_stat (desktop_file, &desktop_buf) == 0) {
15587N/A+ struct stat system_buf;
15587N/A+ system_file = g_build_filename (DATADIR "/applications",
15587N/A+ "star.desktop",
15587N/A+ NULL);
15587N/A+ if (g_stat (system_file, &system_buf) == 0) {
15587N/A+ if (desktop_buf.st_size != system_buf.st_size) {
15587N/A+ g_unlink(desktop_file);
15587N/A+ }
15587N/A+ }
15587N/A+ g_free (system_file);
15587N/A+ }
14181N/A+
15587N/A+ g_free (desktop_file);
15587N/A+ g_free (desktop_path);
14181N/A+}
14181N/A+
14181N/A+static void
15587N/A open_windows (NautilusApplication *application,
15587N/A const char *startup_id,
15587N/A char **uris,
15587N/A@@ -629,6 +661,7 @@
14181N/A return;
14181N/A }
14181N/A
15587N/A+ check_star_icon ();
15587N/A if (kill_shell) {
15587N/A if (unique_app_is_running (application->unique_app)) {
15587N/A unique_app_send_message (application->unique_app,