Skip to content

Commit 493eb94

Browse files
Merge pull request #71 from ActivityWatch/dev/open-log-dir-fix
fix: Make open dir work correctly with PyInstaller on Linux
2 parents c7d1cd3 + 04069cb commit 493eb94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aw_qt/trayicon.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def open_dir(d: str) -> None:
6868
elif sys.platform == "darwin":
6969
subprocess.Popen(["open", d])
7070
else:
71-
subprocess.Popen(["xdg-open", d])
71+
env = get_env()
72+
subprocess.Popen(["xdg-open", d], env=env)
7273

7374

7475
class TrayIcon(QSystemTrayIcon):

0 commit comments

Comments
 (0)