fixed socket connect with low permissions

This commit is contained in:
Martin Wagner 2022-11-05 14:48:43 +01:00
parent bc14370ef2
commit 1927e61689

View File

@ -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: