add -DG_DISABLE_ASSERT to CFLAGS. updated. bumped version to 0.11.17. only

* src/Makefile.am: add -DG_DISABLE_ASSERT to CFLAGS.
* NEWS: updated.
* vte.spec: bumped version to 0.11.17.
* src/vte.c: only try to guess the user's shell when actually
  forking, so we avoid unnecessary work if the application
  already has to do that itself.
parent 93d57b0c
2006-01-28 Guilherme de S. Pastore <gpastore@gnome.org>
* src/Makefile.am: add -DG_DISABLE_ASSERT to CFLAGS.
* NEWS: updated.
* vte.spec: bumped version to 0.11.17.
2006-01-28 Guilherme de S. Pastore <gpastore@gnome.org>
* src/vte.c: only try to guess the user's shell when actually
forking, so we avoid unnecessary work if the application
already has to do that itself.
2006-01-15 Guilherme de S. Pastore <gpastore@gnome.org>
* src/: applied patch from Kjartan Maraas that replaces g_return
......
0.11.17 - Revert .pc changes from previous release. They
apparently need pkg-config changes to work.
0.11.17 - Revert .pc changes from previous release (Olav Vitters)
- Fix bug #170032 - gnome-terminal has problems with ANSI
(save and restore cursor position) (Olav Vitters)
- Fix bug #321909 – vte does not install devhelp file
(Guilherme de S. Pastore)
- Apply patch from Kjartan Maraas to replace g_return* with
g_assert in static functions (Guilherme de S. Pastore)
- Avoid guessing the user's shell until we make sure it is
really necessary (Guilherme de S. Pastore)
- Disable asserts by default (Guilherme de S. Pastore)
0.11.16 - Optimize memory used for fonts (Mike Hearn)
- Fix crasher with accessibility (Padraig O'Briain)
- Fix some warning from GDK (Michele Baldessari)
......
......@@ -20,7 +20,7 @@ EXTRA_DIST = \
unitable.JIS0212 \
unitable.KSX1001
AM_CFLAGS = @VTE_CFLAGS@ @CFLAGS@ @X_CFLAGS@
AM_CFLAGS = @VTE_CFLAGS@ @CFLAGS@ @X_CFLAGS@ -DG_DISABLE_ASSERT
AM_LDFLAGS = @LDFLAGS@
EXTRA_libvte_la_SOURCES = keysyms.c
......
......@@ -7315,6 +7315,12 @@ _vte_terminal_fork_basic(VteTerminal *terminal, const char *command,
return pid;
}
static char *
get_user_shell (VteTerminal *terminal)
{
}
/**
* vte_terminal_fork_command:
* @terminal: a #VteTerminal
......@@ -7346,7 +7352,31 @@ vte_terminal_fork_command(VteTerminal *terminal,
/* Make the user's shell the default command. */
if (command == NULL) {
command = terminal->pvt->shell;
if (terminal->pvt->shell == NULL) {
struct passwd *pwd;
pwd = getpwuid(getuid());
if (pwd != NULL) {
terminal->pvt->shell = pwd->pw_shell;
#ifdef VTE_DEBUG
if (_vte_debug_on(VTE_DEBUG_MISC)) {
fprintf(stderr,
"Using user's shell (%s).\n",
terminal->pvt->shell);
}
#endif
}
}
if (terminal->pvt->shell == NULL) {
terminal->pvt->shell = "/bin/sh";
#ifdef VTE_DEBUG
if (_vte_debug_on(VTE_DEBUG_MISC)) {
fprintf(stderr, "Using default shell (%s).\n",
terminal->pvt->shell);
}
#endif
}
command = terminal->pvt->shell;return terminal->pvt->shell;
}
/* Start up the command and get the PTY of the master. */
......@@ -11253,7 +11283,6 @@ vte_terminal_init(VteTerminal *terminal, gpointer *klass)
{
VteTerminalPrivate *pvt;
GtkWidget *widget;
struct passwd *pwd;
GtkAdjustment *adjustment;
struct timezone tz;
struct timeval tv;
......@@ -11312,30 +11341,7 @@ vte_terminal_init(VteTerminal *terminal, gpointer *klass)
vte_terminal_set_size(terminal,
pvt->default_column_count,
pvt->default_row_count);
/* Determine what the user's shell is. */
if (pvt->shell == NULL) {
pwd = getpwuid(getuid());
if (pwd != NULL) {
pvt->shell = pwd->pw_shell;
#ifdef VTE_DEBUG
if (_vte_debug_on(VTE_DEBUG_MISC)) {
fprintf(stderr, "Using user's shell (%s).\n",
pvt->shell);
}
#endif
}
}
if (pvt->shell == NULL) {
pvt->shell = "/bin/sh";
#ifdef VTE_DEBUG
if (_vte_debug_on(VTE_DEBUG_MISC)) {
fprintf(stderr, "Using default shell (%s).\n",
pvt->shell);
}
#endif
}
pvt->shell = g_quark_to_string(g_quark_from_string(pvt->shell));
pvt->shell = NULL;
pvt->pty_master = -1;
pvt->pty_input = NULL;
pvt->pty_input_source = VTE_INVALID_SOURCE;
......
Name: vte
Version: 0.11.16
Version: 0.11.17
Release: 1
Summary: An experimental terminal emulator.
License: LGPL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment