diff -rup ../gnome-utils-2.20.0.1//gnome-screenshot/gnome-screenshot.c ./gnome-screenshot/gnome-screenshot.c
--- ../gnome-utils-2.20.0.1//gnome-screenshot/gnome-screenshot.c	2007-09-06 06:49:02.000000000 -0700
+++ ./gnome-screenshot/gnome-screenshot.c	2008-12-07 01:30:01.000000000 -0800
@@ -83,6 +83,7 @@ static gboolean take_window_shot = FALSE
 static gboolean include_border = FALSE;
 static char *border_effect = NULL;
 static guint delay = 0;
+static gboolean print_filename = FALSE;
 
 /* some local prototypes */
 static void display_help           (GtkWindow *parent);
@@ -593,6 +594,10 @@ try_to_save (ScreenshotDialog *dialog,
 
   if (result == GNOME_VFS_OK)
     {
+      // Print path+filename to stdout without file:// specifier
+      if(print_filename)
+        printf("%s\n",&(target[7]));
+     
       save_folder_to_gconf (dialog);
       return TRUE;
     }
@@ -867,6 +872,7 @@ main (int argc, char *argv[])
   gboolean interactive_arg = FALSE;
   gchar *border_effect_arg = NULL;
   guint delay_arg = 0;
+  gboolean print_arg = FALSE;
 
   const GOptionEntry entries[] = {
     { "window", 'w', 0, G_OPTION_ARG_NONE, &window_arg, N_("Grab a window instead of the entire screen"), NULL },
@@ -874,7 +880,9 @@ main (int argc, char *argv[])
     { "delay", 'd', 0, G_OPTION_ARG_INT, &delay_arg, N_("Take screenshot after specified delay [in seconds]"), N_("seconds") },
     { "border-effect", 'e', 0, G_OPTION_ARG_STRING, &border_effect_arg, N_("Effect to add to the border (shadow, border or none)"), N_("effect") },
     { "interactive", 'i', 0, G_OPTION_ARG_NONE, &interactive_arg, N_("Interactively set options"), NULL },
-    { NULL },
+    { "print-filename",'p',0, G_OPTION_ARG_NONE, &print_arg, N_("Print saved filename (including path) to stdout"), NULL},
+    { NULL }
+
   };
 
   setlocale (LC_ALL, "");
@@ -918,6 +926,9 @@ main (int argc, char *argv[])
       g_free (border_effect);
       border_effect = border_effect_arg;
     }
+  
+  if (print_arg)
+      print_filename = TRUE;
 
   if (delay_arg > 0)
     delay = delay_arg;
