From b26f51b388bff63179091aa9929ed41abd851213 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 10 Apr 2009 14:22:16 +0000 Subject: 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=/trunk/; revision=3598 --- (limited to 'shell/main.c') diff --git a/shell/main.c b/shell/main.c index 4d48fb2..22d42af 100644 --- a/shell/main.c +++ b/shell/main.c @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -409,7 +410,7 @@ main (int argc, char *argv[]) } } #endif /* ENABLE_DBUS */ - + if (!ev_init ()) return 1; @@ -427,6 +428,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 (); -- cgit v0.9.1