Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Remove Helper Apps (Menu Helper, Login Helper)

オープン
#844 コメント 7 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
macos, postgres
領域
desktop

調査の方向性

Start by tracing the main app, Login Helper, and Menu Helper entry points and how login-item launches and server shutdown currently work. Check the activation-policy transitions described in the issue and verify that normal launches, login launches, window closing, quitting, and logout preserve the stated behavior without either helper app.

索引モデルが issue の本文から書いたものです。

説明

Currently, Postgres.app has two helper apps:

  • Login Helper (starts PostgreSQL servers on login, and the menu helper)
  • Menu Helper (shows the menu bar icon)

The main reason for the helpers is that we don't want to show any user interface on login (dock icon, app window) but still launch servers.

However, I've realised that we could maybe do away with the helpers alltogether by dynamically changing the "activation policy" using NSApp.setActivationPolicy(.regular) and NSApp.setActivationPolicy(.accessory) to show/hide the dock icon.

Then instead of a helper app, we could just launch the main app on login.

  • if the app is opened as a login item, we call .setActivationPolicy(.accessory)
  • if the app is opened normally (eg. double clicking in Finder) we call .setActivationPolicy(.regular)
  • if the main window is closed we call .setActivationPolicy(.accessory)
  • when the app is terminated (eg. using the "quit" command or when the user logs out) we stop all servers and quit the app

Behavior would be similar to how it is now, but we would only have a single app and no helpers.

Advantages:

  • app shows up as a normal login item
  • sparkle check happens every login (doesn't require explicitly launching main app)
  • no more version conflicts (eg. when a different version of main app vs helper is running)
  • no more apple script errors when controlling main app from menu helper (it's the same process)
  • servers quit automatically on logout #834
  • Prevent macOS Tahoe warning #817
主要言語
Makefile
スター
7.8k
フォーク
404
平均マージ
6時間 55分
マージ済み PR(30日)
6

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PostgresApp/PostgresApp のほかの issue

PostgresApp/PostgresApp の issue をすべて見る

似ている issue

Desktop Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。