Allow disabling of dbus from the command line, and make use of that when spawning a new terminator process
This commit is contained in:
parent
93104c42a2
commit
f20b437caf
@ -56,6 +56,9 @@ if __name__ == '__main__':
|
||||
# being False will cause us to continue without the dbus server and open a
|
||||
# window.
|
||||
try:
|
||||
if OPTIONS.nodbus:
|
||||
dbg('dbus disabled by command line')
|
||||
raise ImportError
|
||||
from terminatorlib import ipc
|
||||
try:
|
||||
ipc.DBusService()
|
||||
|
@ -68,6 +68,8 @@ WM_WINDOW_ROLE property on the window')
|
||||
parser.add_option('-l', '--layout', dest='layout', help='Select a layout')
|
||||
parser.add_option('-p', '--profile', dest='profile', help='Use a \
|
||||
different profile as the default')
|
||||
parser.add_option('-u', '--no-dbus', action='store_true', dest='nodbus',
|
||||
help='Disable DBus')
|
||||
parser.add_option('-d', '--debug', action='count', dest='debug',
|
||||
help='Enable debugging information (twice for debug server)')
|
||||
parser.add_option('--debug-classes', action='store', dest='debug_classes',
|
||||
|
@ -1509,7 +1509,7 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||
return False
|
||||
|
||||
dbg("Terminal::key_new_window: Spawning: %s" % cmd)
|
||||
subprocess.Popen([cmd, ])
|
||||
subprocess.Popen([cmd, '-u'])
|
||||
|
||||
def key_broadcast_off(self):
|
||||
self.set_groupsend(None, self.terminator.groupsend_type['off'])
|
||||
|
Loading…
Reference in New Issue
Block a user