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.
svn path=/trunk/; revision=3598
+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.
+
2009-04-10 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (ev_window_create_tmp_symlink):
#include <stdlib.h>
#include <string.h>
+#include <glib/gstdio.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
}
}
#endif /* ENABLE_DBUS */
-
+
if (!ev_init ())
return 1;
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 ();