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 # remotinator - send commands to Terminator via DBus
# Copyright (C) 2006-2010 cmsj@tenshu.net # 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.core import setup
from distutils.dist import Distribution 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 # Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net # 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 # Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net # 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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""borg.py - We are the borg. Resistance is futile. """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 # TerminatorConfig - layered config classes
# Copyright (C) 2006-2010 cmsj@tenshu.net # 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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""container.py - classes necessary to contain Terminal widgets""" """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""cwd.py - function necessary to get the cwd for a given pid on various OSes """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> # 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 # vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab
# #
# Copyright (c) 2009, Emmanuel Bretelle <chantra@debuntu.org> # 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 # TerminatorEncoding - charset encoding classes
# Copyright (C) 2006-2010 chantra@debuntu.org # 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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""factory.py - Maker of objects """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> # 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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""ipc.py - DBus server and API calls""" """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 # Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net # 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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""layoutlauncher.py - class for the Layout Launcher window""" """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""notebook.py - classes for the notebook widget""" """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 # Terminator.optionparse - Parse commandline options
# Copyright (C) 2006-2010 cmsj@tenshu.net # 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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""paned.py - a base Paned container class and the vertical/horizontal """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""plugin.py - Base plugin system """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""activitywatch.py - Terminator Plugin to watch a terminal for activity""" """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""custom_commands.py - Terminator Plugin to add custom command menu entries""" """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> # Plugin by Sinan Nalkaya <sardok@gmail.com>
# See LICENSE of Terminator package. # See LICENSE of Terminator package.

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python2
# Copyright (c) 2010 Julien Nicoulaud <julien.nicoulaud@gmail.com> # Copyright (c) 2010 Julien Nicoulaud <julien.nicoulaud@gmail.com>
# #
# This program is free software; you can redistribute it and/or modify # 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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""terminalshot.py - Terminator Plugin to take 'screenshots' of individual """terminalshot.py - Terminator Plugin to take 'screenshots' of individual

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python2
import terminatorlib.plugin as plugin import terminatorlib.plugin as plugin
# AVAILABLE must contain a list of all the classes that you want exposed # 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? # Terminator by Chris Jones <cmsj@tenshu.net?
# GPL v2 only # GPL v2 only
"""url_handlers.py - Default plugins for URL handling""" """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. """Preferences Editor for Terminator.
Load a UIBuilder config file, display it, 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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""searchbar.py - classes necessary to provide a terminal search bar""" """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""Simple management of Gtk Widget signal handlers""" """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""terminal.py - classes necessary to provide Terminal widgets""" """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""terminal_popup_menu.py - classes necessary to provide a terminal context """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""terminator.py - class for the master Terminator singleton""" """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> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""titlebar.py - classes necessary to provide a terminal title bar""" """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 # Terminator - multiple gnome terminals in one window
# Copyright (C) 2006-2010 cmsj@tenshu.net # 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 # Terminator.util - misc utility functions
# Copyright (C) 2006-2010 cmsj@tenshu.net # Copyright (C) 2006-2010 cmsj@tenshu.net
# #

View File

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

View File

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

View File

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