macOS
LeetCode Ghost Window provides robust support for macOS, with specialized techniques to ensure invisibility to screen recording software across macOS Ventura, Sonoma, and other versions.
Installation
There are multiple ways to install LeetCode Ghost Window on macOS:
Option 1: DMG Installer (Recommended)
The easiest way to install is using the DMG package:
- Download the latest
.dmg
file from our GitHub repository - Open the DMG file
- Drag the LeetCode Ghost Window app to your Applications folder
- Launch the application from your Applications folder or Launchpad
Option 2: ZIP Archive
For a manual installation:
- Download the
.zip
archive - Extract the contents
- Move the extracted app to your Applications folder
- Right-click on the app and select "Open" (required the first time due to security settings)
Option 3: CLI Installation
Install using npm (requires Node.js):
# Install globally npm install -g leetcode-joseok # Launch the application leet-joseok init
Using Homebrew (Coming Soon)
In a future update, we plan to support installation via Homebrew:
brew install --cask leetcode-ghost-window
Note: This method is not yet available but will be supported in an upcoming release.
macOS Security Notes
When you first launch the app, macOS may show a security warning since the app is not from the Mac App Store. To open it:
- Right-click (or Control-click) on the app icon
- Select "Open" from the context menu
- Click "Open" in the dialog that appears
You only need to do this the first time you launch the application.
macOS-Specific Features
LeetCode Ghost Window on macOS includes several platform-specific enhancements:
Window Layering
Uses macOS's window layering system and specialized window flags to prevent the window from being captured by screen recording software.
Content Protection
Implements content protection flags similar to those used by DRM systems to prevent window contents from being captured.
Workspace Integration
Properly integrates with macOS workspaces (Mission Control), allowing the application to follow you between desktops and remain ghost-like across all of them.
Touch Bar Support (for compatible Macs)
Adds Touch Bar shortcuts for Macs with a Touch Bar, providing quick access to common functions.
Apple Silicon Support
Native Apple Silicon (M1/M2/M3) support for improved performance on newer Macs, while maintaining compatibility with Intel-based Macs.
System Requirements
- Operating System: macOS 12 Monterey or newer (best performance on macOS 13 Ventura and macOS 14 Sonoma)
- Processor: Intel Core i5 or Apple Silicon (M1/M2/M3)
- Memory: 4 GB RAM minimum, 8 GB recommended
- Storage: 50 MB of available space
- Internet: Required for AI processing features
macOS Keyboard Shortcuts
LeetCode Ghost Window adapts its keyboard shortcuts to match macOS conventions:
Action | macOS Shortcut |
---|---|
Capture primary screenshot | ⌘+⇧+1 |
Capture secondary screenshot | ⌘+⇧+2 |
Capture tertiary screenshot | ⌘+⇧+3 |
Process with AI | ⌘+⇧+A |
Toggle Ghost Mode | ⌘+⇧+G |
Settings | ⌘+, |
Quit application | ⌘+Q |
Troubleshooting macOS Issues
App Won't Open Due to Security Settings
If you see "App can't be opened because it is from an unidentified developer":
- Right-click (or Control-click) on the app
- Select "Open" from the context menu
- Click "Open" in the dialog box
- Alternatively, adjust your security settings in System Preferences > Security & Privacy > General tab
Screen Recording Permissions
For the screenshot capture feature to work properly:
- Go to System Preferences > Security & Privacy > Privacy
- Select "Screen Recording" from the left sidebar
- Ensure LeetCode Ghost Window is checked in the list
- If it's not in the list, add it by clicking the "+" button
- Restart the application after granting permissions
CLI Command Not Found
If the leet-joseok
command is not recognized:
- Check if the npm bin directory is in your PATH with
echo $PATH
- Add npm bin to your PATH if missing by adding
export PATH="$PATH:$(npm config get prefix)/bin"
to your .zshrc or .bash_profile - Try reinstalling with
npm install -g leetcode-joseok
Performance Issues on Older Macs
If you experience performance issues on older hardware:
- Close unnecessary background applications
- In the application settings, reduce the window opacity
- Disable animations in settings if available
- Consider using the CLI version which may use fewer resources