From 0acae56f4261073eb84b13a91743a2ee1a83b6be Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 30 Aug 2024 13:33:00 +0200 Subject: [PATCH] fix mount command for real --- .../server/providers/filesystem_smb/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/music_assistant/server/providers/filesystem_smb/__init__.py b/music_assistant/server/providers/filesystem_smb/__init__.py index d924130f..98379e3c 100644 --- a/music_assistant/server/providers/filesystem_smb/__init__.py +++ b/music_assistant/server/providers/filesystem_smb/__init__.py @@ -182,14 +182,11 @@ class SMBFileSystemProvider(LocalFileSystemProvider): ] elif platform.system() == "Linux": - options = ["rw"] + options = ["rw", f'username="{username}"'] if mount_options := str(self.config.get_value(CONF_MOUNT_OPTIONS)): options += mount_options.split(",") - - options += ["username", f'"{username}"'] if password: - options += ["password", f'"{password}"'] - + options.append(f'password="{password}"') options_str = ",".join(options) mount_cmd = [ "mount", -- 2.34.1