Skip to content

Commit

Permalink
Fix bug saving terminal emulator working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyHaystack committed Aug 5, 2019
1 parent 550f59f commit 7c6c6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i3_resurrect/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def save_commands(workspace, directory):

try:
# Obtain working directory using psutil.
if con['window_class'] in terminals:
if con['window_properties']['class'] in terminals:
# If the program is a terminal emulator, get the working
# directory from its first subprocess.
working_directory = procinfo.children()[0].cwd()
Expand Down

0 comments on commit 7c6c6b6

Please sign in to comment.