diff --git a/client/app.py b/client/app.py index c8923fe..cc36464 100644 --- a/client/app.py +++ b/client/app.py @@ -229,6 +229,13 @@ def setLaunchMode(self,mode): os.system('systemctl --user daemon-reload') elif platform.system() == "Darwin": applicationPath = os.path.join(os.path.normpath(os.getcwd() + os.sep + os.pardir), "MacOS/NSO-RPC") + + # Rebuild the path if we're running inside Downloads (This assumes that only Downloads can have /private/var/folders) + if applicationPath.startswith("/private"): + applicationPathTmp = applicationPath.split("/") + applicationPathTmp = applicationPathTmp[len(applicationPathTmp)-4:len(applicationPathTmp)] + applicationPath = os.path.join(os.path.expanduser('~/Downloads'), "/".join(applicationPathTmp)) + macOSplist = [ '', '',