Remove Helper Apps (Menu Helper, Login Helper)
まだ誰も着手していません。
評価
- 難易度
- 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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PostgresApp/PostgresApp のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
PostgresApp/PostgresApp#859 ·
-
Postgres.app 3.0 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
PostgresApp/PostgresApp#842 · コメント 1 件 · リアクション 7 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
PostgresApp/PostgresApp#834 ·
-
Apple Script Support オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PostgresApp/PostgresApp#833 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
PostgresApp/PostgresApp#824 ·
PostgresApp/PostgresApp の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
app bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AvengeMedia/DankMaterialShell#3537 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
CherryHQ/cherry-studio#20947 · リアクション 1 件 ·