Question:
I am able to run the app while running as root, but when logged in a normal user I cannot.
Answer:
If you install the app as root (ie via sudo) then the data directory will end up being owned by root, and thus the normal user cannot write to it.
To resolve this, log in as the user you are trying to run the app as and enter this command into the terminal:
ls -la ~/.local/share/HubStaff/
If the files are not all owned by the user, then you have installed as root and need:
chown -R <user>.<user> ~/.local/share/HubStaff