pass original working directory to dbus_options as well

This commit is contained in:
Matt Rose 2020-10-30 12:05:27 -04:00
parent acba6fa34e
commit 1d8a7f2b2f

View File

@ -68,7 +68,6 @@ if __name__ == '__main__':
dbg ("%s starting up, version %s" % (APP_NAME, APP_VERSION))
OPTIONS,dbus_options = terminatorlib.optionparse.parse_options()
if OPTIONS.configjson:
configjson = ConfigJson()
layoutname = configjson.extend_config(OPTIONS.configjson)
@ -104,6 +103,7 @@ if __name__ == '__main__':
# (the -x argument for example)
if OPTIONS.working_directory is None:
OPTIONS.working_directory = ORIGCWD
dbus_options['working_directory'] = ORIGCWD
optionslist = dbus.Dictionary(dbus_options, signature='ss')
if OPTIONS.new_tab:
dbg('Requesting a new tab')