fix mount command for real
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 30 Aug 2024 11:33:00 +0000 (13:33 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 30 Aug 2024 11:33:00 +0000 (13:33 +0200)
music_assistant/server/providers/filesystem_smb/__init__.py

index d924130f75d8399e568b5c499be6339474220480..98379e3cf763a4264beafa89c5c73c88c1564121 100644 (file)
@@ -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",