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 @@