barest minimum of a fix for LP #129104

This commit is contained in:
Chris Jones 2007-08-27 00:24:32 +01:00
parent 3d1b206a80
commit 7410072da1
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1,3 @@
Chris Jones <cmsj@tenshu.net> Chris Jones <cmsj@tenshu.net>
Draws heavily from the example python-vte code and the gedit terminal plugin

View File

@ -15,6 +15,8 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import os
import pwd
import sys import sys
import string import string
import gobject import gobject
@ -112,7 +114,8 @@ class TerminatorTerm:
if self.gconf_client.get_bool (self.profile + "/use_custom_command") == True: 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")) self._vte.fork_command (self.gconf_client.get_string (self.profile + "/custom_command"))
else: 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): def reconfigure_vte (self):
if ((self.lastreconfigure != 0) and (time.time () - self.lastreconfigure) < 5): if ((self.lastreconfigure != 0) and (time.time () - self.lastreconfigure) < 5):