From ce940bbec5ba9902bba4aae9dec9cac335c467ba Mon Sep 17 00:00:00 2001 From: j Date: Fri, 27 Feb 2015 16:13:15 +0530 Subject: [PATCH] run install on 9841 to avoid port issues on 9842 --- Open Media Library.app/Contents/MacOS/install.py | 11 ++++++----- .../Contents/Resources/static/install.html | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Open Media Library.app/Contents/MacOS/install.py b/Open Media Library.app/Contents/MacOS/install.py index 31adf0f..c4e4c9d 100755 --- a/Open Media Library.app/Contents/MacOS/install.py +++ b/Open Media Library.app/Contents/MacOS/install.py @@ -12,7 +12,7 @@ import SocketServer from threading import Thread -PORT = 9842 +PORT = 9841 static_dir = os.path.normpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', 'Resources', 'static')) @@ -112,14 +112,15 @@ class Install(Thread): return data def install_launchd(self): - plist = os.path.expanduser('~/Library/LaunchAgents/com.openmedialibrary.loginscript.plist') + name = 'com.openmedialibrary.loginscript' + plist = os.path.expanduser('~/Library/LaunchAgents/%s.plist'%name) with open(plist, 'w') as f: f.write(''' Label - com.openmedialibrary.loginscript + %s ProgramArguments %s/ctl @@ -128,9 +129,9 @@ class Install(Thread): RunAtLoad -''' % self.target) +''' % (name, self.target)) os.system('launchctl load "%s"' % plist) - os.system('launchctl start com.openmedialibrary.loginscript') + os.system('launchctl start %s' % name) if __name__ == '__main__': diff --git a/Open Media Library.app/Contents/Resources/static/install.html b/Open Media Library.app/Contents/Resources/static/install.html index 29461f7..12604c6 100644 --- a/Open Media Library.app/Contents/Resources/static/install.html +++ b/Open Media Library.app/Contents/Resources/static/install.html @@ -7,7 +7,7 @@