Skip to content

Commit

Permalink
Merge branch 'pr/70' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMi460 committed Apr 29, 2023
2 parents be93dc7 + 62b56bd commit 2e4f6f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
'<?xml version="1.0" encoding="UTF-8"?>',
'<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">',
Expand Down

0 comments on commit 2e4f6f2

Please sign in to comment.