From 83fac249384e414f5011cf2ecd8f49155e20634f Mon Sep 17 00:00:00 2001 From: Fernando Basso Date: Wed, 6 May 2020 12:58:47 -0300 Subject: [PATCH] Fix layout launcher error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘LayoutLauncher’ needs to know the current working directory, which as being passed as ‘None’ . This commit fixes it by setting the current directory unconditionally so it is always available throughout the application. --- terminator | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/terminator b/terminator index 7454df55..c824b19f 100755 --- a/terminator +++ b/terminator @@ -68,6 +68,9 @@ if __name__ == '__main__': OPTIONS = terminatorlib.optionparse.parse_options() + TERMINATOR = Terminator() + TERMINATOR.set_origcwd(ORIGCWD) + if OPTIONS.select: # launch gui, return selection LAYOUTLAUNCHER=LayoutLauncher() @@ -112,8 +115,6 @@ if __name__ == '__main__': pass MAKER = Factory() - TERMINATOR = Terminator() - TERMINATOR.set_origcwd(ORIGCWD) TERMINATOR.set_dbus_data(dbus_service) TERMINATOR.reconfigure() TERMINATOR.ibus_running = ibus_running