Skip to content

Commit 04069cb

Browse files
fix: Make open dir work correctly with PyInstaller on Linux
1 parent c7d1cd3 commit 04069cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)