Skip to content

Commit 012eb08

Browse files
committed
Now with a if statement to run this on Windows only
1 parent a43c643 commit 012eb08

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

activity_browser/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
from qtpy.QtCore import Qt
1010

1111
# this will enable the AB icon to show in the taskbar under Windows 11 (instead of the default python icon)
12-
import ctypes
13-
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("company.app.1")
12+
if sys.platform == "win32":
13+
import ctypes
14+
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("company.app.1")
1415

1516
from activity_browser import application
1617
from activity_browser.ui import icons

0 commit comments

Comments
 (0)