Skip to content

Commit

Permalink
fix:wayland compat (#27)
Browse files Browse the repository at this point in the history
* fix:wayland compat

```
Oct 18 17:50:20 x270.home.lan ovos-core[13490]: [0.076] [glfw error 65544]: X11: The DISPLAY environment variable is missing
Oct 18 17:50:20 x270.home.lan ovos-core[13490]: GLFW initialization failed
```

* Update __init__.py
  • Loading branch information
JarbasAl authored Oct 18, 2024
1 parent eef777d commit 0c7667e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def close_app(self, app: str) -> bool:

def is_running(self, app: str) -> bool:
""" check if a application is running"""
if self.match_window(app):
if self.wmctrl is not None and self.match_window(app):
return True
for p in self.match_process(app):
return True
Expand Down

0 comments on commit 0c7667e

Please sign in to comment.