From 7dbe33b5bfd99ff4ef116f8ccf4777edd8ade788 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 19 Mar 2009 20:04:14 +0000 Subject: Chdir to / in the factory, so we don't hog any mountpoints. svn path=/branches/gnome-2-26/; revision=8923 --- lib/ephy-file-chooser.c | 2 ++ lib/ephy-file-helpers.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c index a23d99320..4c6b5783d 100644 --- a/lib/ephy-file-chooser.c +++ b/lib/ephy-file-chooser.c @@ -127,6 +127,8 @@ static void ephy_file_chooser_init (EphyFileChooser *dialog) { dialog->priv = EPHY_FILE_CHOOSER_GET_PRIVATE (dialog); + + gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), g_get_home_dir ()); } static GObject * diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index b3ba240dd..8864cbe83 100644 --- a/lib/ephy-file-helpers.c +++ b/lib/ephy-file-helpers.c @@ -23,6 +23,8 @@ #include "config.h" +#include + #include "ephy-file-helpers.h" #include "ephy-prefs.h" @@ -31,6 +33,7 @@ #include "ephy-string.h" #include +#include #include #include #include @@ -261,6 +264,10 @@ ephy_file_helpers_init (const char *profile_dir, { const char *uuid; + /* Make sure the server process doesn't hog any mountpoints! */ + if (chdir ("/") < 0) + g_warning ("Failed to chdir to /: %s", g_strerror (errno)); + /* See if we've been calling ourself, and abort if we have */ uuid = g_getenv (EPHY_UUID_ENVVAR); if (uuid && strcmp (uuid, EPHY_UUID) == 0) -- cgit v1.2.1