Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion install-scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
set -e

KEXT="/Library/Extensions/softu2f.kext"
LAUNCH_AGENT_PLIST="$HOME/Library/LaunchAgents/com.github.SoftU2F.plist"
LAUCNH_AGENTS_DIR="$HOME/Library/LaunchAgents"
LAUNCH_AGENT_PLIST="$LAUCNH_AGENTS_DIR/com.github.SoftU2F.plist"

# Make sure the kext is loaded
kextutil $KEXT

# This directory should already exist, but some users have had issues with it
# being missing.
mkdir -p $LAUCNH_AGENTS_DIR

# Write a LaunchAgent plist so app starts at login
cat > $LAUNCH_AGENT_PLIST << EOT
<?xml version="1.0" encoding="UTF-8"?>
Expand Down