Skip to content

Commit c72ebf4

Browse files
committed
add logging when pydbus is not installed
1 parent fb94dc6 commit c72ebf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aw_watcher_window/lib.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import sys
22
import json
3+
import logging
34
from typing import Optional
45

6+
logger = logging.getLogger(__name__)
7+
58

69
class Linux:
710
def __init__(self):
811
try:
912
import pydbus
1013
self.bus = pydbus.SessionBus()
1114
except ModuleNotFoundError:
15+
logger.info("pydbus not installed, GNOME-Shell Wayland support disabled")
1216
self.bus = False
1317
self.gnome_shell = None
1418

0 commit comments

Comments
 (0)