Skip to content

Commit

Permalink
Fix layout launcher error
Browse files Browse the repository at this point in the history
‘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.
  • Loading branch information
FernandoBasso committed May 6, 2020
1 parent fe9e041 commit 83fac24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terminator
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 83fac24

Please sign in to comment.