evince r3598 - in trunk: . shell



Author: carlosgc
Date: Fri Apr 10 14:22:16 2009
New Revision: 3598
URL: http://svn.gnome.org/viewvc/evince?rev=3598&view=rev

Log:
2009-04-10  Carlos Garcia Campos  <carlosgc gnome org>

	* shell/main.c: (main):

	Change process working directory to $HOME so that we don't prevent
	unmounting in case the initial cwd is on an external device. Fixes
	bug #575436.

Modified:
   trunk/ChangeLog
   trunk/shell/main.c

Modified: trunk/shell/main.c
==============================================================================
--- trunk/shell/main.c	(original)
+++ trunk/shell/main.c	Fri Apr 10 14:22:16 2009
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <glib/gstdio.h>
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
 
@@ -409,7 +410,7 @@
 		}
 	}
 #endif /* ENABLE_DBUS */
-
+	
         if (!ev_init ())
                 return 1;
 
@@ -427,6 +428,11 @@
 		load_files (file_arguments, args);
 	g_hash_table_destroy (args);
 
+	/* Change directory so we don't prevent unmounting in case the initial cwd
+	 * is on an external device (see bug #575436)
+	 */
+	g_chdir (g_get_home_dir ());	
+
 	gtk_main ();
 
 	ev_shutdown ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]