Specifically Dropbox 112.4.321 on MacOS 10.12.6.
Background:
A restore from backup (TimeMachine) after a failed hard drive resulted in a number 1 being appended to the User Name.
Most things did not notice this, but I found it an annoyance for something which I now forget. So I used the time-tested procedure of renaming a Home folder, by logging in as another Admin (or perhaps Root), changing the Home folder name (by removing the space and 1 from the end), and then creating a new User with the correct name. The OS alerted me that such a Home folder already existed, so did I wish to utilise that? Yes, exactly what I want.
So this fixed all the annoyances I had been experiencing but created a new problem, with Dropbox.
Problem:
Dropbox thinks the path to the folder is "/Users/Supermac 1", but the actual path is "/Users/Supermac" and it fails to launch, providing a permissions error. There is no User folder named Supermac 1. Perhaps I will need to create one with the sole purpose of launching Dropbox in order to move the Dropbox folder!
Questions:
1— Is there a plist or similar containing the path to the Dropbox folder? If so what is it called, where is it located and what is the String name?
2— Is there a Terminal Command that will edit the path to the Dropbox folder? I am not a UNIX Admin, but am cautious and have successfully executed commands provided, to do things such as copy RAID disks to larger volumes, create symlinks, show invisible files, run daily maintenance and many other things.
In essence the actual solution is rather simple, but I do not have access to it. The Dropbox App will not launch with this error, so I cannot use the Dropbox Location menu within the App. I cannot use the contextual menu to launch Dropbox from the Dropbox folder, and the instructions in the Help named "Dropbox permissions error - how to fix in Terminal on MacOS" do not work, because the file or directory does not exist.
I would be most grateful for an answer as my Dropbox is shared with my lawyer for a case I have lodged in Court. Thanks in advance.