From 1927e6168964a927feb26cbec5e2ecb83ec7ae0e Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Sat, 5 Nov 2022 14:48:43 +0100 Subject: [PATCH] fixed socket connect with low permissions --- src/mpdevil.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mpdevil.py b/src/mpdevil.py index 6b04fc6..6863c2c 100755 --- a/src/mpdevil.py +++ b/src/mpdevil.py @@ -728,7 +728,10 @@ class Client(MPDClient): return False # connect successful if profile.get_boolean("socket-connection"): - self.lib_path=self.config() + if "config" in self.commands(): + self.lib_path=self.config() + else: + print("No permission to get music directory.") else: self.lib_path=self._settings.get_active_profile().get_string("path") if not self.lib_path: