mirror of
https://github.com/localsend/localsend.git
synced 2026-06-23 04:10:07 +00:00
feat: enable silent startup using LSUIElement (#2449)
This commit is contained in:
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user