evince r3599 - in branches/gnome-2-26: . shell
- From: carlosgc svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3599 - in branches/gnome-2-26: . shell
- Date: Fri, 10 Apr 2009 14:25:01 +0000 (UTC)
Author: carlosgc
Date: Fri Apr 10 14:25:01 2009
New Revision: 3599
URL: http://svn.gnome.org/viewvc/evince?rev=3599&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:
branches/gnome-2-26/ChangeLog
branches/gnome-2-26/shell/main.c
Modified: branches/gnome-2-26/shell/main.c
==============================================================================
--- branches/gnome-2-26/shell/main.c (original)
+++ branches/gnome-2-26/shell/main.c Fri Apr 10 14:25:01 2009
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
+#include <glib/gstdio.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
@@ -371,7 +372,7 @@
}
}
#endif /* ENABLE_DBUS */
-
+
if (!ev_init ())
return 1;
@@ -389,6 +390,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]