From f7fdbb25947a15c8af7ad1d1015037313643d4fa Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 10 Apr 2009 14:25:01 +0000 Subject: [PATCH] Change process working directory to $HOME so that we don't prevent 2009-04-10 Carlos Garcia Campos * 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=/branches/gnome-2-26/; revision=3599 --- ChangeLog | 8 ++++++++ shell/main.c | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 629d7c02..7990a42f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-04-10 Carlos Garcia Campos + + * 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 * properties/ev-properties-main.c: (ev_properties_get_pages): diff --git a/shell/main.c b/shell/main.c index 17e0f647..fef0cb76 100644 --- a/shell/main.c +++ b/shell/main.c @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -371,7 +372,7 @@ main (int argc, char *argv[]) } } #endif /* ENABLE_DBUS */ - + if (!ev_init ()) return 1; @@ -389,6 +390,11 @@ main (int argc, char *argv[]) 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 (); -- 2.47.1