epiphany r8923 - branches/gnome-2-26/lib
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8923 - branches/gnome-2-26/lib
- Date: Thu, 19 Mar 2009 20:04:14 +0000 (UTC)
Author: chpe
Date: Thu Mar 19 20:04:14 2009
New Revision: 8923
URL: http://svn.gnome.org/viewvc/epiphany?rev=8923&view=rev
Log:
Chdir to / in the factory, so we don't hog any mountpoints.
Modified:
branches/gnome-2-26/lib/ephy-file-chooser.c
branches/gnome-2-26/lib/ephy-file-helpers.c
Modified: branches/gnome-2-26/lib/ephy-file-chooser.c
==============================================================================
--- branches/gnome-2-26/lib/ephy-file-chooser.c (original)
+++ branches/gnome-2-26/lib/ephy-file-chooser.c Thu Mar 19 20:04:14 2009
@@ -127,6 +127,8 @@
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 *
Modified: branches/gnome-2-26/lib/ephy-file-helpers.c
==============================================================================
--- branches/gnome-2-26/lib/ephy-file-helpers.c (original)
+++ branches/gnome-2-26/lib/ephy-file-helpers.c Thu Mar 19 20:04:14 2009
@@ -23,6 +23,8 @@
#include "config.h"
+#include <unistd.h>
+
#include "ephy-file-helpers.h"
#include "ephy-prefs.h"
@@ -31,6 +33,7 @@
#include "ephy-string.h"
#include <glib.h>
+#include <glib/gstdio.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
#include <gio/gdesktopappinfo.h>
@@ -261,6 +264,10 @@
{
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]