From 67f51b2fa4a1267a9b4419e25558c19e78ba62e3 Mon Sep 17 00:00:00 2001 From: Farzin Kazemzadeh Date: Wed, 25 Dec 2024 17:22:15 +0330 Subject: [PATCH] fix: ensure IRIS_USE_SUDO is treated as a boolean --- mopidy_iris/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy_iris/system.py b/mopidy_iris/system.py index 6b937845..ced9aff1 100755 --- a/mopidy_iris/system.py +++ b/mopidy_iris/system.py @@ -25,7 +25,7 @@ class IrisSystemPermissionError(IrisSystemError): class IrisSystemThread(Thread): - _USE_SUDO = os.environ.get("IRIS_USE_SUDO", True) + _USE_SUDO = str(os.environ.get("IRIS_USE_SUDO", True)).lower() == "true" def __init__(self, action, ioloop, callback): Thread.__init__(self)