Skip to content

Commit

Permalink
fix error 'ClonableTerminal' object has no attribute 'uuid', which ma…
Browse files Browse the repository at this point in the history
…kes the plugin to not work
  • Loading branch information
cristobal-ortega committed Jul 27, 2016
1 parent 84f011d commit d8c811d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions clone_session.py
@@ -1,19 +1,19 @@
"""
################################################################################
# Copyright (c) 2013, Ilgar Mashayev
#
#
# Website: http://lazylabs.org
################################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
################################################################################
Expand All @@ -25,6 +25,7 @@
import gtk
import os
import subprocess
# import uuid

import terminatorlib.plugin as plugin
import terminatorlib.util as util
Expand Down Expand Up @@ -195,17 +196,17 @@ def spawn_child_with_command(self, init_command=None, widget=None, respawn=False
pass

envv = []
envv.append('TERMINATOR_UUID=%s' % self.uuid.urn)
# envv.append('TERMINATOR_UUID=%s' % uuid.uuid1().urn)
if self.terminator.dbus_name:
envv.append('TERMINATOR_DBUS_NAME=%s' % self.terminator.dbus_name)
if self.terminator.dbus_path:
envv.append('TERMINATOR_DBUS_PATH=%s' % self.terminator.dbus_path)

dbg('Forking shell: "%s" with args: %s' % (shell, args))
self.pid = self.vte.fork_command(command=shell, argv=args, envv=envv,
loglastlog=login,
loglastlog=login,
logwtmp=update_records,
logutmp=update_records,
logutmp=update_records,
directory=self.cwd)
self.command = shell

Expand Down

0 comments on commit d8c811d

Please sign in to comment.