📖 Installation Guide

Complete guide to installing Kleopatra on macOS using Homebrew

System Requirements

Quick Installation

1. Add the Homebrew Tap

brew tap paulapplegate/kleopatra-modern

2. Install Kleopatra

brew install kleopatra

3. Launch Kleopatra

# Option 1: Command line kleopatra # Option 2: GUI (Applications folder) open /Applications/kleopatra.app # Option 3: Terminal launch (recommended for better file access) open $(brew --prefix)/Applications/kleopatra.app

Alternative: Direct Download Installation

1. Download Formula

curl -O https://modern-mac-kleopatra.paulapplegate.com/kleopatra.rb

2. Install from Downloaded Formula

brew install --build-from-source ./kleopatra.rb

Post-Installation Setup

1. Test Drag-and-Drop

  1. Launch Kleopatra
  2. Create a test file: echo "Hello World" > test.txt
  3. Drag test.txt onto Kleopatra window
  4. Select "Sign/Encrypt..." from popup menu

2. Configure Services

# Start DBus (required) brew services start dbus # Restart GPG agent (if needed) killall -9 gpg-agent

3. Grant Full Disk Access (Optional)

For maximum compatibility:

  1. System SettingsPrivacy & SecurityFull Disk Access
  2. Click "+" and add: $(brew --prefix)/Applications/kleopatra.app/Contents/MacOS/kleopatra
  3. Restart Kleopatra
⚠️ Important: The Sign/Encrypt buttons and File menu don't work due to macOS sandboxing. Use drag & drop instead - it works perfectly!

Installation Troubleshooting

Build Failures

# Update Homebrew first brew update && brew upgrade # Reinstall if needed brew uninstall kleopatra brew install kleopatra

DBus Connection Failed

# Restart DBus service brew services restart dbus # Check DBus status brew services list | grep dbus

Permission Issues

  1. Launch from Terminal: open $(brew --prefix)/Applications/kleopatra.app
  2. Grant Full Disk Access (see step 3 above)
  3. Try different file locations (Desktop, Documents)

Next Steps

After successful installation:

  1. Read the Usage Guide for drag-and-drop instructions
  2. Check Troubleshooting for common issues
  3. Configure your GPG keys and certificates