[vte] [vteapp] Prefer $SHELL to /bin/sh
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] [vteapp] Prefer $SHELL to /bin/sh
- Date: Fri, 1 Oct 2010 20:04:07 +0000 (UTC)
commit f97b8b8a41a5ace2995cc663dba624a82ce65670
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Oct 1 16:01:20 2010 -0400
[vteapp] Prefer $SHELL to /bin/sh
src/vteapp.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/vteapp.c b/src/vteapp.c
index cf248c9..0718fd4 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -994,8 +994,11 @@ main(int argc, char **argv)
_VTE_DEBUG_IF(VTE_DEBUG_MISC)
vte_terminal_feed(terminal, message, -1);
- if (command == NULL)
- command = "/bin/sh"; // FIXMEchpe
+ if (command == NULL || *command == '\0')
+ command = g_getenv ("SHELL");
+
+ if (command == NULL || *command == '\0')
+ command = "/bin/sh";
if (command != NULL) {
if (!g_shell_parse_argv(command, &command_argc, &command_argv, &err) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]