Index: gnome-desktop-item.c
===================================================================
RCS file: /cvs/gnome/gnome-desktop/libgnome-desktop/gnome-desktop-item.c,v
retrieving revision 1.148.2.4
diff -u -p -r1.148.2.4 gnome-desktop-item.c
--- gnome-desktop-item.c	10 Apr 2006 13:01:22 -0000	1.148.2.4
+++ gnome-desktop-item.c	11 Apr 2006 15:29:48 -0000
@@ -1928,8 +1928,10 @@ ditem_execute (const GnomeDesktopItem *i
 			
 			if (item->launch_time > 0)
 				launch_time = item->launch_time;
-			else
+			else if (screen != NULL)
 				launch_time = gdk_x11_display_get_user_time (gdk_screen_get_display (screen));
+			else
+				launch_time = gdk_x11_display_get_user_time (gdk_display_get_default ());
 
 			sn_launcher_context_initiate (sn_context,
 						      g_get_prgname () ? g_get_prgname () : "unknown",
