summaryrefslogtreecommitdiff
path: root/branding/templates/qtinstaller/osx/post-install.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2020-10-02 21:31:04 +0200
committerRuben Pollan <meskio@sindominio.net>2020-10-13 19:08:47 +0200
commit8d27403228b0782e135d5c5d5d97ec54785cfae3 (patch)
treef0e535a06ebc6ecb65acf557ebfcc8fae5ed922b /branding/templates/qtinstaller/osx/post-install.py
parent0a432c12feb280b72ed17714bbd3a9d518c9308a (diff)
[pkg] osx uninstall, autolaunch
Diffstat (limited to 'branding/templates/qtinstaller/osx/post-install.py')
-rwxr-xr-xbranding/templates/qtinstaller/osx/post-install.py6
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():