Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

40 LaunchAgent and Manual Loan Period Removal

Tyler Morgan edited this page Apr 2, 2019 · 2 revisions

LaunchAgent

Note: The LaunchAgent is provided in the example Installer

LoanShark can be installed at any time during deployment. Since LoanShark is a sandboxed application, it needs to be run in user space. To ensure LoanShark runs in user space, we need to install a LaunchAgent.

This LaunchAgent will loop, running every 10 seconds that will:

  1. Check if LoanShark exists
  2. Check if User is not _mbsetupuser
  3. Check if User is on desktop (Finder process exists)

If not, the script will exit, and be re-executed 10 seconds later.

If yes, it will launch LoanShark.

Note: LoanShark is designed around a single use model which requires manual removal of different settings as outlined below.

/Library/LaunchAgent/com.github.cybertunnel.LoanShark.plist

com.github.cybertunnel.LoanShark.plist

/Library/LoanShark/LoanShark.launch.sh

LoanShark.launch.sh

Manual Loan Period Removal

Single LoanShark is a sandboxed application, it stores it's settings in the user's ~/Library/Containers/com.github.cybertunnel.LoanShark/Data/Library/Preferences/ folder.

To remove these settings, run this command rm ~/Library/Containers/com.github.cybertunnel.LoanShark/Data/Library/Preferences/com.github.cybertunnel.LoanShark.plist then reboot and settings should be removed.