Startup ‐ Python - babsonnexus/stream-link-manager-for-channels GitHub Wiki

You have the option for how you want to handle this. Since Streaming Library Manager is designed to be a background service, just running the program like this...

python slm.py

... or with the executable you generated will result in a window sitting there like this:

image

If that does not bother you, you should be fine. However, it is recommended to build an automation script that will start the process in the background and make it start upon login/bootup. For instance, if you wanted to do this in MacOS, you would:

  1. Make a new file called slm.app in the directory you created earlier, open it in Script Editor, and enter the following AppleScript code:

    do shell script "nohup /usr/local/bin/python3 /[YOUR_SLM_DIRECTORY]/slm.py &> /dev/null &"
    

    Replace [YOUR_SLM_DIRECTORY] with the path you created earlier and save the file.

  2. Set the slm.app to run at startup:

    • Open System Preferences > Users & Groups.
    • Select your user account and go to the Login Items tab.
    • Click the + button and add the slm.app you created.