Skip to content

Commit

Permalink
Merge pull request #71 from ActivityWatch/dev/open-log-dir-fix
Browse files Browse the repository at this point in the history
fix: Make open dir work correctly with PyInstaller on Linux
  • Loading branch information
johan-bjareholt committed Feb 21, 2021
2 parents c7d1cd3 + 04069cb commit 493eb94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aw_qt/trayicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def open_dir(d: str) -> None:
elif sys.platform == "darwin":
subprocess.Popen(["open", d])
else:
subprocess.Popen(["xdg-open", d])
env = get_env()
subprocess.Popen(["xdg-open", d], env=env)


class TrayIcon(QSystemTrayIcon):
Expand Down

0 comments on commit 493eb94

Please sign in to comment.