diff options
Diffstat (limited to 'branding/templates/qtinstaller/osx/post-install.py')
-rwxr-xr-x | branding/templates/qtinstaller/osx/post-install.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/branding/templates/qtinstaller/osx/post-install.py b/branding/templates/qtinstaller/osx/post-install.py index 18059aa..2c15845 100755 --- a/branding/templates/qtinstaller/osx/post-install.py +++ b/branding/templates/qtinstaller/osx/post-install.py @@ -12,6 +12,7 @@ import subprocess HELPER = "bitmask-helper" HELPER_PLIST = "/Library/LaunchDaemons/se.leap.bitmask-helper.plist" + _dir = os.path.dirname(os.path.realpath(__file__)) def main(): @@ -73,13 +74,12 @@ def fixHelperOwner(log): def copyLaunchDaemon(): plist = "se.leap.bitmask-helper.plist" path = os.path.join(_dir, plist) - dest = os.path.join('/Library/LaunchDaemons', plist) _p = _dir.replace("/", "\/") subprocess.call(["sed", "-i.back", "s/PATH/%s/" % _p, path]) - shutil.copy(path, dest) + shutil.copy(path, HELPER_PLIST) def launchHelper(): - out = subprocess.call(["launchctl", "load", "/Library/LaunchDaemons/se.leap.bitmask-helper.plist"]) + out = subprocess.call(["launchctl", "load", HELPER_PLIST]) return out == 0 def grantPermissionsOnLogFolder(): |