File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,14 @@ void Platform::SetProcessName(const char* name) {
349349
350350 _LSSetApplicationLaunchServicesServerConnectionStatus (0 , nullptr );
351351
352- _LSApplicationCheckIn (-2 , CFBundleGetInfoDictionary (CFBundleGetMainBundle ()));
352+ CFMutableDictionaryRef dictionary = CFDictionaryCreateMutableCopy (
353+ kCFAllocatorDefault , /* capacity=*/ 0 ,
354+ CFBundleGetInfoDictionary (CFBundleGetMainBundle ()));
355+ if (dictionary == nullptr ) return ;
356+ ScopedCFStringRef _kLSUIElement (" LSUIElement" );
357+ CFDictionarySetValue (dictionary, _kLSUIElement.get (), kCFBooleanTrue );
358+ _LSApplicationCheckIn (-2 , dictionary);
359+ CFRelease (dictionary);
353360
354361 CFTypeRef asn;
355362 asn = _LSGetCurrentApplicationASN ();
You can’t perform that action at this time.
0 commit comments