Skip to content

fix: switch autostart from LaunchAgent to LoginItem (AppleScript)#65

Merged
VariableThe merged 1 commit into
mainfrom
fix/login-item-visibility
Jun 25, 2026
Merged

fix: switch autostart from LaunchAgent to LoginItem (AppleScript)#65
VariableThe merged 1 commit into
mainfrom
fix/login-item-visibility

Conversation

@VariableThe

Copy link
Copy Markdown
Owner

Summary

Changed MacosLauncher::LaunchAgentMacosLauncher::AppleScript in
lib.rs:48.

Before: The plugin created a hidden .plist in
~/Library/LaunchAgents/ managed by launchd. Invisible to the user —
no entry in System Settings.

After: The plugin uses AppleScript to tell System Events to register
PaperCache as a Login Item. The app now appears in System Settings >
General > Login Items
where users can see and toggle it.

What stays the same:

  • hide_dock_icon() still runs — no dock icon, only the tray icon
  • --silently flag still suppresses the window on autolaunch
  • The Settings toggle works identically — just calls
    app.autolaunch().enable()/disable()

Note: If Launch Agent was previously enabled, toggle it off and
back on after this change to switch to the Login Item registration.

MacosLauncher::LaunchAgent creates a hidden launchd plist invisible to
the user. MacosLauncher::AppleScript registers via AppleScript/System
Events, making PaperCache appear in System Settings > General > Login
Items as a user-manageable entry.
@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@VariableThe, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 41 minutes and 19 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5e00172d-7262-424b-8292-303bd2b285f3

📥 Commits

Reviewing files that changed from the base of the PR and between 6683b5c and 55264b3.

📒 Files selected for processing (3)
  • AUDIT_LOG.md
  • CHANGELOG.md
  • src-tauri/src/lib.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/login-item-visibility

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@VariableThe VariableThe merged commit c5a8f91 into main Jun 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant