Skip to content

Commit

Permalink
add logging when pydbus is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLudwig committed Jun 10, 2020
1 parent fb94dc6 commit c72ebf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aw_watcher_window/lib.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import sys
import json
import logging
from typing import Optional

logger = logging.getLogger(__name__)


class Linux:
def __init__(self):
try:
import pydbus
self.bus = pydbus.SessionBus()
except ModuleNotFoundError:
logger.info("pydbus not installed, GNOME-Shell Wayland support disabled")
self.bus = False
self.gnome_shell = None

Expand Down

0 comments on commit c72ebf4

Please sign in to comment.