Open cv0cv0 opened 5 years ago
应用内包含一个辅助程序用于监控播放器的运行状态。辅助程序在开机时,或主程序退出时自动开启。辅助程序若监控到 iTunes 运行,即启动主程序。有以下几个例外情况:
- 辅助程序是由主程序启动的,此时不会启动主程序。
- 辅助程序启动时 iTunes 已经在运行,此时需要等待 iTunes 退出。
- 开机启动时,若 iTunes 已经在运行,即启动主程序。
你的情况似乎是规则 3 失效了。关掉 iTunes 自启动,开机后手动开启 iTunes 试试?
iTunes 是手动开启的。
开机后如果没有启动过 LyricsX 手动启动 iTunes LyricsX 不会跟随启动,必须手动打开一次 LyricsX 以后才会跟随启动。
系统是 10.14.3。
启动 iTunes 前看看活动监视器里有没有 LyricsXHelper?
启动 iTunes 前看看活动监视器里有没有 LyricsXHelper?
应该是没有的,这个不能随系统启动吗?
这个应该是开机自启的,我有时间再确认一下这部分逻辑。你先把这个功能关掉再开启试试?
请关闭该功能后再开启,看看 console.app
中有没有日志 Failed to set login item enabled
?
请关闭该功能后再开启,看看
console.app
中有没有日志Failed to set login item enabled
?
报了两个错误:
Sandbox: LyricsXHelper(8736) deny(1) file-read-data /Users/guanrui/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist Violation: deny(1) file-read-data /Users/guanrui/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist Process: LyricsXHelper [8736] Path: /Applications/LyricsX.app/Contents/Library/LoginItems/LyricsXHelper.app/Contents/MacOS/LyricsXHelper Load Address: 0x104724000 Identifier: ddddxxx.LyricsXHelper Version: 10 (0.1.1) Code Type: x86_64 (Native) Parent Process: launchd [1] Responsible: /Applications/LyricsX.app/Contents/Library/LoginItems/LyricsXHelper.app/Contents/MacOS/LyricsXHelper [8736] User ID: 501
Date/Time: 2019-01-25 11:04:57.172 GMT+8 OS Version: Mac OS X 10.14.3 (18D42) Report Version: 8
MetaData: {"platform_binary":"no","uid":501,"file-flags":0,"vnode-type":"REGULAR-FILE","operation":"file-read-data","platform-binary":false,"rdev":0,"path":"\/Users\/guanrui\/Library\/Preferences\/com.apple.LaunchServices\/com.apple.launchservices.secure.plist","responsible-process-pid":8736,"responsible-process-path":"\/Applications\/LyricsX.app\/Contents\/Library\/LoginItems\/LyricsXHelper.app\/Contents\/MacOS\/LyricsXHelper","hardware":"Mac","primary-filter-value":"\/Users\/guanrui\/Library\/Preferences\/com.apple.LaunchServices\/com.apple.launchservices.secure.plist","action":"deny","team-id":"3665V726AE","flags":5,"pid":8736,"build":"Mac OS X 10.14.3 (18D42)","process":"LyricsXHelper","primary-filter":"path","errno":1,"file-mode":420,"summary":"deny(1) file-read-data \/Users\/guanrui\/Library\/Preferences\/com.apple.LaunchServices\/com.apple.launchservices.secure.plist","container":"\/Users\/guanrui\/Library\/Containers\/ddddxxx.LyricsXHelper\/Data","profile-flags":0,"profile-in-collection":false,"process-path":"\/Applications\/LyricsX.app\/Contents\/Library\/LoginItems\/LyricsXHelper.app\/Contents\/MacOS\/LyricsXHelper","platform-policy":false,"normalized_target":["Users","guanrui","Library","Preferences","com.apple.LaunchServices","com.apple.launchservices.secure.plist"],"signing-id":"ddddxxx.LyricsXHelper","target":"\/Users\/guanrui\/Library\/Preferences\/com.apple.LaunchServices\/com.apple.launchservices.secure.plist"}
Thread 0 (id: 351681): 0 libsystem_kernel.dylib 0x00007fff697e794e ulock_wait + 10 1 libdispatch.dylib 0x00007fff6965e68b _dispatch_thread_event_wait_slow + 33 2 libdispatch.dylib 0x00007fff69669c8a DISPATCH_WAIT_FOR_QUEUE + 294 3 libdispatch.dylib 0x00007fff696698cf _dispatch_sync_f_slow + 171 4 LaunchServices 0x00007fff3da93e41 _LSPreferences::with(_LSPreferences::SecurityContext const, void (void const) block_pointer) + 321 5 LaunchServices 0x00007fff3da939ab _LSPreferences::With(_LSPreferences::SecurityContext const, void (void const) block_pointer) + 85 6 LaunchServices 0x00007fff3dab9018 _LSWithMutableInsecurePreferences + 122 7 LaunchServices 0x00007fff3dab8f5c _LSPrefsInit(long) + 376 8 LaunchServices 0x00007fff3dac2e34 _LSPrefsGetApplicationCapabilityIsDisabled + 45 9 LaunchServices 0x00007fff3dac0ab4 prepareApplicationCapabilityIsDisabledValue(_LSOnDemandContext&, FSNode, CFString const, unsigned int, __FileCache, CFString const, NSError autoreleasing) + 567 10 LaunchServices 0x00007fff3dac2e01 prepareApplicationHighResolutionModeIsMagnifiedValue(_LSOnDemandContext&, FSNode, FileCache*, CFString const, NSError autoreleasing*) + 30 11 LaunchServices 0x00007fff3da8bd8d LSPropertyProviderPrepareValues(CFURL const, __FileCache, CFString const const, void const*, long, void const, CFError*) + 646 12 CoreServicesInternal 0x00007fff50f32d61 prepareValuesForBitmap(__CFURL const, FileCache, _FilePropertyBitmap, __CFError**) + 360 13 CoreServicesInternal 0x00007fff50f34a95 _FSURLCopyResourcePropertyForKeyInternal(CFURL const, __CFString const, void, void, __CFError**, unsigned char) + 214 14 CoreFoundation 0x00007fff3c4644a7 CFURLCopyResourcePropertyForKey + 101 15 HIToolbox 0x00007fff3b6efd72 _HIMagnifiedMode + 75 16 AppKit 0x00007fff3999e6f9 -[NSScreen backingScaleFactor] + 64 17 AppKit 0x00007fff3999d344 _NSScreenConfigurationUpdateWithSharedInfo + 280 18 AppKit 0x00007fff3999b31e ___NSScreenConfigurationEnsureInitialUpdateOccurred_block_invoke + 173 19 libdispatch.dylib 0x00007fff6965ddcf _dispatch_client_callout + 8 20 libdispatch.dylib 0x00007fff6965f515 _dispatch_once_callout + 20 21 AppKit 0x00007fff3999b26f +[_NSScreenConfiguration prepare] + 34 22 AppKit 0x00007fff3999b096 -[NSApplication(ScreenHandling) _registerForDisplayChangedNotifications] + 280 23 AppKit 0x00007fff39995326 -[NSApplication init] + 1754 24 AppKit 0x00007fff39994a59 +[NSApplication sharedApplication] + 138 25 AppKit 0x00007fff399936fb NSApplicationMain + 356 26 LyricsXHelper 0x0000000104726c39 27 libdyld.dylib 0x00007fff696abed9 start + 1 28 LyricsXHelper 0x0000000000000001
Thread 1 (id: 351685): 0 libsystem_kernel.dylib 0x00007fff697e6152 __open + 10 1 Foundation 0x00007fff3e7f0a2c -[NSData(NSData) initWithContentsOfFile:options:maxLength:error:] + 203 2 Foundation 0x00007fff3e7f89a3 +[NSDictionary(NSDictionary) newWithContentsOf:immutable:] + 115 3 Foundation 0x00007fff3e7f891d +[NSDictionary(NSDictionary) dictionaryWithContentsOfURL:] + 45 4 LaunchServices 0x00007fff3db02d25 invocation function for block in _LSPreferences::load() + 292 5 libdispatch.dylib 0x00007fff696695c8 _dispatch_block_async_invoke2 + 83 6 libdispatch.dylib 0x00007fff6965ddcf _dispatch_client_callout + 8 7 libdispatch.dylib 0x00007fff6966ad14 _dispatch_lane_concurrent_drain + 1033 8 libdispatch.dylib 0x00007fff69664c5c _dispatch_lane_invoke + 516 9 libdispatch.dylib 0x00007fff696600e7 _dispatch_queue_override_invoke + 422 10 libdispatch.dylib 0x00007fff6966bd26 _dispatch_root_queue_drain + 325 11 libdispatch.dylib 0x00007fff6966c4bd _dispatch_worker_thread2 + 90 12 libsystem_pthread.dylib 0x00007fff6989e6dd _pthread_wqthread + 619 13 libsystem_pthread.dylib 0x00007fff6989e405 start_wqthread + 13 14 LyricsXHelper 0x0000000054485244
Thread 2 (id: 351686): 0 libsystem_kernel.dylib 0x00007fff697e6b6a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6989e405 start_wqthread + 13 2 LyricsXHelper 0x0000000000000001
Thread 3 (id: 351691): 0 CoreFoundation 0x00007fff3c4242a6 _CFGetTSDCreateIfNeeded + 39 1 CoreFoundation 0x00007fff3c421ed0 __CFStringCreateImmutableFunnel3 + 72 2 CoreFoundation 0x00007fff3c4295ec CFStringCreateWithBytes + 27 3 CoreFoundation 0x00007fff3c43243e CreateStringFromFileSystemRepresentationByAddingPercentEscapes + 603 4 CoreFoundation 0x00007fff3c431dd4 POSIXPathToURLPath + 204 5 CoreFoundation 0x00007fff3c51cffc _CFURLCreateWithFileSystemPath + 213 6 Foundation 0x00007fff3e7a7f58 -[NSURL(NSURL) initFileURLWithPath:isDirectory:] + 414 7 Foundation 0x00007fff3e7d4fec +[NSURL(NSURL) fileURLWithPath:isDirectory:] + 54 8 LaunchServices 0x00007fff3dacb620 -[_LSDefaults userPreferencesURL] + 69 9 LaunchServices 0x00007fff3dacb5a8 -[_LSDefaults preferencesFileURL] + 23 10 LaunchServices 0x00007fff3db02cd7 invocation function for block in _LSPreferences::load() + 214 11 libdispatch.dylib 0x00007fff696695c8 _dispatch_block_async_invoke2 + 83 12 libdispatch.dylib 0x00007fff6965ddcf _dispatch_client_callout + 8 13 libdispatch.dylib 0x00007fff6966ad14 _dispatch_lane_concurrent_drain + 1033 14 libdispatch.dylib 0x00007fff69664c5c _dispatch_lane_invoke + 516 15 libdispatch.dylib 0x00007fff696600e7 _dispatch_queue_override_invoke + 422 16 libdispatch.dylib 0x00007fff6966bd26 _dispatch_root_queue_drain + 325 17 libdispatch.dylib 0x00007fff6966c4bd _dispatch_worker_thread2 + 90 18 libsystem_pthread.dylib 0x00007fff6989e6dd _pthread_wqthread + 619 19 libsystem_pthread.dylib 0x00007fff6989e405 start_wqthread + 13 20 LyricsXHelper 0x0000000054485244
Thread 4 (id: 351692): 0 libsystem_kernel.dylib 0x00007fff697e6b6a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6989e405 start_wqthread + 13
Binary Images:
0x104724000 - 0x10472cfff ddddxxx.LyricsXHelper (0.1.1 - 10) <4c7d4388-9e35-3f36-8dd9-65d0797d4907> /Applications/LyricsX.app/Contents/Library/LoginItems/LyricsXHelper.app/Contents/MacOS/LyricsXHelper
0x7fff39990000 - 0x7fff3a7b1ffb com.apple.AppKit (6.9 - 1671.20.108)
应用内包含一个辅助程序用于监控播放器的运行状态。辅助程序在开机时,或主程序退出时自动开启。辅助程序若监控到 iTunes 运行,即启动主程序。有以下几个例外情况:
你的情况似乎是规则 3 失效了。关掉 iTunes 自启动,开机后手动开启 iTunes 试试?