From 8d27403228b0782e135d5c5d5d97ec54785cfae3 Mon Sep 17 00:00:00 2001 From: kali Date: Fri, 2 Oct 2020 21:31:04 +0200 Subject: [pkg] osx uninstall, autolaunch --- branding/templates/qtinstaller/osx/post-install.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'branding/templates/qtinstaller/osx/post-install.py') 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(): -- cgit v1.2.3