Index: libgnome-desktop/gnome-desktop-item.c
===================================================================
RCS file: /cvs/gnome/gnome-desktop/libgnome-desktop/gnome-desktop-item.c,v
retrieving revision 1.137
diff -p -u -r1.137 gnome-desktop-item.c
--- libgnome-desktop/gnome-desktop-item.c	5 Aug 2004 18:15:13 -0000	1.137
+++ libgnome-desktop/gnome-desktop-item.c	25 Aug 2004 19:43:16 -0000
@@ -1403,7 +1403,7 @@ make_spawn_environment_for_sn_context (S
 {
 	char **retval = NULL;
 	int    i, j;
-	int    desktop_startup_id_len;
+	int    desktop_startup_id_len, desktop_startup_timestamp_len;
 
 	if (envp == NULL)
 		envp = environ;
@@ -1411,9 +1411,10 @@ make_spawn_environment_for_sn_context (S
 	for (i = 0; envp[i]; i++)
 		;
 
-	retval = g_new (char *, i + 2);
+	retval = g_new (char *, i + 4);
 
 	desktop_startup_id_len = strlen ("DESKTOP_STARTUP_ID");
+	desktop_startup_timestamp_len = strlen ("DESKTOP_STARTUP_TIMESTAMP");
 	
 	for (i = 0, j = 0; envp[i]; i++) {
 		if (strncmp (envp[i], "DESKTOP_STARTUP_ID", desktop_startup_id_len) != 0)
@@ -1421,10 +1422,18 @@ make_spawn_environment_for_sn_context (S
 			retval[j] = g_strdup (envp[i]);
 			++j;
 	        }
+		else if (strncmp (envp[i], "DESKTOP_STARTUP_TIMESTAMP", desktop_startup_timestamp_len) != 0)
+		{
+			retval[j] = g_strdup (envp[i]);
+			++j;
+	        }
 	}
 
 	retval[j] = g_strdup_printf ("DESKTOP_STARTUP_ID=%s",
 				     sn_launcher_context_get_startup_id (sn_context));
+	++j;
+	retval[j] = g_strdup_printf ("DESKTOP_STARTUP_TIMESTAMP=%lu",
+				     sn_launcher_context_get_timestamp (sn_context));
 	++j;
 	retval[j] = NULL;
 
