gnome-terminal r3266 - branches/gnome-2-24/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r3266 - branches/gnome-2-24/src
- Date: Wed, 24 Dec 2008 22:35:22 +0000 (UTC)
Author: chpe
Date: Wed Dec 24 22:35:22 2008
New Revision: 3266
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3266&view=rev
Log:
chdir() to /home/chpe in the factory process, so we don't hog any mountpoints. Bug #565328, based on a patch by Mads Chr. Olesen.
Modified:
branches/gnome-2-24/src/terminal.c
Modified: branches/gnome-2-24/src/terminal.c
==============================================================================
--- branches/gnome-2-24/src/terminal.c (original)
+++ branches/gnome-2-24/src/terminal.c Wed Dec 24 22:35:22 2008
@@ -22,6 +22,7 @@
#include <config.h>
#include <glib.h>
+#include <glib/gstdio.h>
#include "terminal-intl.h"
@@ -1146,6 +1147,7 @@
char **argv_copy;
const char *startup_id;
const char *display_name;
+ const char *home_dir;
GdkDisplay *display;
GnomeProgram *program;
OptionParsingResults *parsing_results;
@@ -1260,7 +1262,14 @@
initialization_complete = TRUE;
handle_new_terminal_events ();
-
+
+ /* Now change directory to $HOME so we don't prevent unmounting, e.g. if the
+ * factory is started by nautilus-open-terminal. See bug #565328.
+ */
+ home_dir = g_get_home_dir ();
+ if (home_dir)
+ g_chdir (home_dir);
+
gtk_main ();
terminal_app_shutdown ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]