feat: enable silent startup using LSUIElement (#2449)

This commit is contained in:
Shlomo
2025-05-09 16:21:39 +03:00
committed by GitHub
parent 09b9482358
commit 786d7fb257
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ Future<RefenaContainer> preInit(List<String> args) async {
if (startHidden) {
unawaited(hideToTray());
} else {
await WindowManager.instance.show();
unawaited(showFromTray());
}
if (defaultTargetPlatform == TargetPlatform.macOS) {
+2
View File
@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSUIElement</key>
<true/>
<key>AppIdentifierPrefix</key>
<string>$(AppIdentifierPrefix)</string>
<key>CFBundleDevelopmentRegion</key>