diff options
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <stdlib.h> #include <string.h> +#include <glib/gstdio.h> #include <glib/gi18n.h> #include <gtk/gtk.h> @@ -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 (); |