From 7410072da1a0f0f6807d88eea7025a17f7f4a227 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 27 Aug 2007 00:24:32 +0100 Subject: [PATCH] barest minimum of a fix for LP #129104 --- AUTHORS | 2 ++ terminator | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 8f6cc523..3eb04adc 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1,3 @@ Chris Jones + +Draws heavily from the example python-vte code and the gedit terminal plugin diff --git a/terminator b/terminator index 493d9c0e..4070f572 100755 --- a/terminator +++ b/terminator @@ -15,6 +15,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +import os +import pwd import sys import string import gobject @@ -112,7 +114,8 @@ class TerminatorTerm: if self.gconf_client.get_bool (self.profile + "/use_custom_command") == True: self._vte.fork_command (self.gconf_client.get_string (self.profile + "/custom_command")) else: - self._vte.fork_command () + shell = pwd.getpwuid (os.getuid ())[6] + self._vte.fork_command (command=shell, argv=[os.path.basename (shell)], envv=[]) def reconfigure_vte (self): if ((self.lastreconfigure != 0) and (time.time () - self.lastreconfigure) < 5):