13439
|
1 |
--- /usr/tmp/clean/nautilus-2.20.0/src/nautilus-application.c 2007-09-10 07:56:43.000000000 +0100
|
|
2 |
+++ nautilus-2.20.0/src/nautilus-application.c 2007-11-23 09:51:37.396201000 +0000
|
|
3 |
@@ -421,6 +421,35 @@
|
|
4 |
}
|
|
5 |
|
|
6 |
static void
|
|
7 |
+check_star_icon (void)
|
|
8 |
+{
|
|
9 |
+ char *desktop_file;
|
|
10 |
+ char *system_file;
|
|
11 |
+ char *desktop_path;
|
|
12 |
+ struct stat desktop_buf;
|
|
13 |
+
|
|
14 |
+ desktop_path = nautilus_get_desktop_directory ();
|
|
15 |
+ desktop_file = g_build_filename (desktop_path,
|
|
16 |
+ "star.desktop",
|
|
17 |
+ NULL);
|
|
18 |
+ if (g_stat (desktop_file, &desktop_buf) == 0) {
|
|
19 |
+ struct stat system_buf;
|
|
20 |
+ system_file = g_build_filename (DATADIR "/applications",
|
|
21 |
+ "star.desktop",
|
|
22 |
+ NULL);
|
|
23 |
+ if (g_stat (system_file, &system_buf) == 0) {
|
|
24 |
+ if (desktop_buf.st_size != system_buf.st_size) {
|
|
25 |
+ g_unlink(desktop_file);
|
|
26 |
+ }
|
|
27 |
+ }
|
|
28 |
+ g_free (system_file);
|
|
29 |
+ }
|
|
30 |
+
|
|
31 |
+ g_free (desktop_file);
|
|
32 |
+ g_free (desktop_path);
|
|
33 |
+}
|
|
34 |
+
|
|
35 |
+static void
|
|
36 |
initialize_kde_trash_hack (void)
|
|
37 |
{
|
|
38 |
char *trash_dir;
|
|
39 |
@@ -524,6 +553,8 @@
|
|
40 |
return;
|
|
41 |
}
|
|
42 |
|
|
43 |
+ check_star_icon();
|
|
44 |
+
|
|
45 |
initialize_kde_trash_hack ();
|
|
46 |
|
|
47 |
CORBA_exception_init (&ev);
|