nautilus-10-star-desktop.diff revision 14181
14181N/A--- /usr/tmp/clean/nautilus-2.20.0/src/nautilus-application.c 2007-09-10 07:56:43.000000000 +0100
14181N/A+++ nautilus-2.20.0/src/nautilus-application.c 2007-11-23 09:51:37.396201000 +0000
14181N/A@@ -421,6 +421,35 @@
14181N/A }
14181N/A
14181N/A static void
14181N/A+check_star_icon (void)
14181N/A+{
14181N/A+ char *desktop_file;
14181N/A+ char *system_file;
14181N/A+ char *desktop_path;
14181N/A+ struct stat desktop_buf;
14181N/A+
14181N/A+ desktop_path = nautilus_get_desktop_directory ();
14181N/A+ desktop_file = g_build_filename (desktop_path,
14181N/A+ "star.desktop",
14181N/A+ NULL);
14181N/A+ if (g_stat (desktop_file, &desktop_buf) == 0) {
14181N/A+ struct stat system_buf;
14181N/A+ system_file = g_build_filename (DATADIR "/applications",
14181N/A+ "star.desktop",
14181N/A+ NULL);
14181N/A+ if (g_stat (system_file, &system_buf) == 0) {
14181N/A+ if (desktop_buf.st_size != system_buf.st_size) {
14181N/A+ g_unlink(desktop_file);
14181N/A+ }
14181N/A+ }
14181N/A+ g_free (system_file);
14181N/A+ }
14181N/A+
14181N/A+ g_free (desktop_file);
14181N/A+ g_free (desktop_path);
14181N/A+}
14181N/A+
14181N/A+static void
14181N/A initialize_kde_trash_hack (void)
14181N/A {
14181N/A char *trash_dir;
14181N/A@@ -524,6 +553,8 @@
14181N/A return;
14181N/A }
14181N/A
14181N/A+ check_star_icon();
14181N/A+
14181N/A initialize_kde_trash_hack ();
14181N/A
14181N/A CORBA_exception_init (&ev);