File: gpo.py
On GitHub line 226 creates brackets and colon even if useLetter is 0. Doesn't make sense.
On Linuxmuster-Installation from 2021-10-02 (no version info in file) it is improved to (starting on line 227):
for drive in shareList:
if drive["useLetter"] == "1":
shareName = f"{drive['label']} ({drive['letter']}:)"
else:
"{drive['label']}"
shares.mountShare(drive["path"], shareName=shareName)
This leads to that these shares are no mounted anymore because the sharename is missing.
Correct way is:
for drive in shareList:
if drive["useLetter"] == "1":
shareName = f"{drive['label']} ({drive['letter']}:)"
else:
shareName = f"{drive['label']}"
shares.mountShare(drive["path"], shareName=shareName)
Works fine! => Please update in the next release.
File: gpo.py On GitHub line 226 creates brackets and colon even if useLetter is 0. Doesn't make sense. On Linuxmuster-Installation from 2021-10-02 (no version info in file) it is improved to (starting on line 227): for drive in shareList: if drive["useLetter"] == "1": shareName = f"{drive['label']} ({drive['letter']}:)"
else: "{drive['label']}" shares.mountShare(drive["path"], shareName=shareName) This leads to that these shares are no mounted anymore because the sharename is missing. Correct way is: for drive in shareList: if drive["useLetter"] == "1": shareName = f"{drive['label']} ({drive['letter']}:)"
else: shareName = f"{drive['label']}"
shares.mountShare(drive["path"], shareName=shareName) Works fine! => Please update in the next release.