Fix terminator not working with default python3 by forcing python2

This commit is contained in:
Stephen Boddy 2016-11-25 02:29:55 +01:00
parent a50e5baae7
commit da37f398fa
41 changed files with 45 additions and 38 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# remotinator - send commands to Terminator via DBus
# Copyright (C) 2006-2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
from distutils.core import setup
from distutils.dist import Distribution

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""borg.py - We are the borg. Resistance is futile.

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# TerminatorConfig - layered config classes
# Copyright (C) 2006-2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""container.py - classes necessary to contain Terminal widgets"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""cwd.py - function necessary to get the cwd for a given pid on various OSes

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
#
# Copyright (c) 2008, Thomas Hurst <tom@hur.st>
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab
#
# Copyright (c) 2009, Emmanuel Bretelle <chantra@debuntu.org>

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# TerminatorEncoding - charset encoding classes
# Copyright (C) 2006-2010 chantra@debuntu.org
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""factory.py - Maker of objects

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
#
# Copyright (c) 2008, Thomas Hurst <tom@hur.st>
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""ipc.py - DBus server and API calls"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""layoutlauncher.py - class for the Layout Launcher window"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""notebook.py - classes for the notebook widget"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator.optionparse - Parse commandline options
# Copyright (C) 2006-2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""paned.py - a base Paned container class and the vertical/horizontal

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""plugin.py - Base plugin system

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""activitywatch.py - Terminator Plugin to watch a terminal for activity"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""custom_commands.py - Terminator Plugin to add custom command menu entries"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Plugin by Sinan Nalkaya <sardok@gmail.com>
# See LICENSE of Terminator package.

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python2
# Copyright (c) 2010 Julien Nicoulaud <julien.nicoulaud@gmail.com>
#
# This program is free software; you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""terminalshot.py - Terminator Plugin to take 'screenshots' of individual

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python2
import terminatorlib.plugin as plugin
# AVAILABLE must contain a list of all the classes that you want exposed

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net?
# GPL v2 only
"""url_handlers.py - Default plugins for URL handling"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
"""Preferences Editor for Terminator.
Load a UIBuilder config file, display it,

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""searchbar.py - classes necessary to provide a terminal search bar"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""Simple management of Gtk Widget signal handlers"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""terminal.py - classes necessary to provide Terminal widgets"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""terminal_popup_menu.py - classes necessary to provide a terminal context

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""terminator.py - class for the master Terminator singleton"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""titlebar.py - classes necessary to provide a terminal title bar"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator.util - misc utility functions
# Copyright (C) 2006-2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# TerminatorVersion - version number
# Copyright (C) 2010 cmsj@tenshu.net
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""window.py - class for the main Terminator window"""
@ -8,7 +8,7 @@ import time
import uuid
import gi
from gi.repository import GObject
from gi.repository import Gtk, Gdk
from gi.repository import Gtk, Gdk, GdkX11
from util import dbg, err, make_uuid, display_manager
import util
@ -308,6 +308,9 @@ class Window(Container, Gtk.Window):
t = GdkX11.x11_get_server_time(self.window)
except AttributeError:
t = 0
print t
print self
print self.window
self.window.focus(t)
else:
self.position = self.get_position()

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python2
"""Load up the tests."""
import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""testborg.py - We are the borg. Resistance is futile.

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""testsignalman.py - Test the signalman class