diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lid.py b/src/plugins/lid.py index c307abb..ed25bf8 100644 --- a/src/plugins/lid.py +++ b/src/plugins/lid.py @@ -37,5 +37,5 @@ class Lid: ''' if not os.path.exists('/proc/acpi/button/lid/LID/state'): return None - with open('/proc/acpi/button/lid/LID/state') as file: - return 'open' in file.read.decode('utf-8', 'strict') + with open('/proc/acpi/button/lid/LID/state', 'rb') as file: + return 'open' in file.read().decode('utf-8', 'strict') |