aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--weechat/python/notify.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/weechat/python/notify.py b/weechat/python/notify.py
index c90b253..ad8882c 100644
--- a/weechat/python/notify.py
+++ b/weechat/python/notify.py
@@ -80,12 +80,8 @@ urgencies = {
# Functions
def is_active_window():
- try:
- p = subprocess.Popen(['xdotool', 'getwindowfocus', 'getwindowname'], stdout=subprocess.PIPE)
- (stdout, _) = p.communicate()
- except FileNotFoundError:
- # Always notify if xdotool isn't available.
- return True
+ p = subprocess.Popen(['xdotool', 'getwindowfocus', 'getwindowname'], stdout=subprocess.PIPE)
+ (stdout, _) = p.communicate()
if p.returncode != 0:
return True