Fix terminator not working with default python3 by forcing python2
This commit is contained in:
parent
a50e5baae7
commit
da37f398fa
|
@ -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
|
||||
#
|
||||
|
|
2
setup.py
2
setup.py
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
from distutils.core import setup
|
||||
from distutils.dist import Distribution
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
# TerminatorConfig - layered config classes
|
||||
# Copyright (C) 2006-2010 cmsj@tenshu.net
|
||||
#
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
#
|
||||
# Copyright (c) 2008, Thomas Hurst <tom@hur.st>
|
||||
#
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
# TerminatorEncoding - charset encoding classes
|
||||
# Copyright (C) 2006-2010 chantra@debuntu.org
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
#
|
||||
# Copyright (c) 2008, Thomas Hurst <tom@hur.st>
|
||||
#
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
# Terminator.optionparse - Parse commandline options
|
||||
# Copyright (C) 2006-2010 cmsj@tenshu.net
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
# Plugin by Sinan Nalkaya <sardok@gmail.com>
|
||||
# See LICENSE of Terminator package.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
"""Preferences Editor for Terminator.
|
||||
|
||||
Load a UIBuilder config file, display it,
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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"""
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
# Terminator.util - misc utility functions
|
||||
# Copyright (C) 2006-2010 cmsj@tenshu.net
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
# TerminatorVersion - version number
|
||||
# Copyright (C) 2010 cmsj@tenshu.net
|
||||
#
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env python2
|
||||
"""Load up the tests."""
|
||||
|
||||
import os
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue