How to prevent Secure Login Client from automatically launching when macOS boots: Secure Login Client (SLC), part of SAP Single Sign-On, automatically launches when the macOS boots. That is often the desired behavior, but in my case, it wasn’t. So I wanted to share with you a simple way of preventing SLC from launching at boot time.

I have two user accounts on my iMac, a personal and a work account. I don’t need SLC for my personal account and thus didn’t want macOS from launching it for all logged in users.

To prevent SLC from launching at boot, open the Terminal.app and navigate to /Library/LaunchAgents.

cd /Library/LaunchAgents

There you will find a preferences file called com.sap.secureloginclient.plist. It’s a system-protected file so you will need sudo to edit it using your favorite editor. I used nano to open the file using the following command:

sudo nano ./com.sap.secureloginclient.plist

Sudo will prompt you to enter your account password.

Once you have opened the file in the editor, locate the following line (line 11):

launchctl setenv SNC_LIB /Applications/SecureLoginClient.app/Contents/MacOS/lib/libsapcrypto.dylib;launchctl setenv SNC_LIB_64 /Applications/SecureLoginClient.app/Contents/MacOS/lib/libsapcrypto.dylib;launchctl setenv SSF_LIBRARY_PATH /Applications/SecureLoginClient.app/Contents/MacOS/lib/libsapcrypto.dylib;launchctl setenv SSF_LIBRARY_PATH_64 /Applications/SecureLoginClient.app/Contents/MacOS/lib/libsapcrypto.dylib;open /Applications/SecureLoginClient.app

Depending on your screen size and resolution, you will probably have to horizontally scroll to the right for a bit until you see the “open /Applications/SecureLoginClient.app” command. Delete that command (the part in bold) and leave the rest as-is. The remaining line should look like this:

launchctl setenv SNC_LIB /Applications/SecureLoginClient.app/Contents/MacOS/lib/libsapcrypto.dylib;launchctl setenv SNC_LIB_64 /Applications/SecureLoginClient.app/Contents/MacOS/lib/libsapcrypto.dylib;launchctl setenv SSF_LIBRARY_PATH /Applications/SecureLoginClient.app/Contents/MacOS/lib/libsapcrypto.dylib;launchctl setenv SSF_LIBRARY_PATH_64 /Applications/SecureLoginClient.app/Contents/MacOS/lib/libsapcrypto.dylib;

Then press CTRL + X and Y to save and exit nano.

How to prevent Secure Login Client from automatically launching when macOS boots