14836
|
1 |
--- /usr/tmp/nautilus-2.25.2/src/nautilus-application.c 2008-12-15 15:54:24.000000000 +0000
|
|
2 |
+++ nautilus-2.25.2/src/nautilus-application.c 2009-01-02 09:43:12.852217000 +0000
|
|
3 |
@@ -546,6 +549,35 @@
|
13439
|
4 |
}
|
|
5 |
|
|
6 |
static void
|
|
7 |
+check_star_icon (void)
|
|
8 |
+{
|
14836
|
9 |
+ char *desktop_file;
|
|
10 |
+ char *system_file;
|
|
11 |
+ char *desktop_path;
|
|
12 |
+ struct stat desktop_buf;
|
13439
|
13 |
+
|
14836
|
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 |
+ }
|
13439
|
30 |
+
|
14836
|
31 |
+ g_free (desktop_file);
|
|
32 |
+ g_free (desktop_path);
|
13439
|
33 |
+}
|
|
34 |
+
|
|
35 |
+static void
|
14836
|
36 |
open_windows (NautilusApplication *application,
|
|
37 |
const char *startup_id,
|
|
38 |
char **uris,
|
|
39 |
@@ -629,6 +661,7 @@
|
13439
|
40 |
return;
|
|
41 |
}
|
|
42 |
|
14836
|
43 |
+ check_star_icon ();
|
|
44 |
if (kill_shell) {
|
|
45 |
if (unique_app_is_running (application->unique_app)) {
|
|
46 |
unique_app_send_message (application->unique_app,
|