jordanbaird / Ice

Powerful menu bar manager for macOS
https://icemenubar.app
GNU General Public License v3.0
12.81k stars 236 forks source link

[Bug]: The app doesn't start unless permissions are manually granted #23

Closed ayndqy closed 5 days ago

ayndqy commented 7 months ago

After it shows the automatic update dialog window, it just closes.

System info:

jordanbaird commented 7 months ago

Can you open the Console app and go to the "Crash Reports" page and see if there is a report for Ice? If so, can you post it here?

ayndqy commented 7 months ago

It looks like there is no crash report for Ice:

Screenshot 2024-03-02 at 20 06 53

Instead, I provide you with logs when the program starts:

default 20:16:47.282185+0000    Ice [0x600001c7c000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.daemon
default 20:16:47.282315+0000    Ice [0x600001c78000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.agent
default 20:16:47.289689+0000    Ice [0x600001c70000] activating connection: mach=true listener=false peer=false name=com.apple.tccd.system
default 20:16:47.318702+0000    Ice [0x600001c70000] invalidated after the last release of the connection object
default 20:16:47.319948+0000    Ice [0x600001c68000] activating connection: mach=true listener=false peer=false name=com.apple.distributed_notifications@Uv3
default 20:16:47.320427+0000    Ice [0x600001c680f0] activating connection: mach=true listener=false peer=false name=com.apple.tccd.system
default 20:16:47.345366+0000    Ice [0x600001c680f0] invalidated after the last release of the connection object
default 20:16:47.349494+0000    Ice [0x600001c6c1e0] activating connection: mach=true listener=false peer=false name=com.apple.tccd.system
default 20:16:47.368684+0000    Ice [0x600001c6c1e0] invalidated after the last release of the connection object
default 20:16:47.368891+0000    Ice server port 0x00003c07, session port 0x00003c07
default 20:16:47.402491+0000    Ice [0x600001c6c1e0] activating connection: mach=true listener=false peer=false name=com.apple.coreservices.launchservicesd
default 20:16:47.403085+0000    Ice [0x600001c6c3c0] activating connection: mach=true listener=false peer=false name=com.apple.analyticsd
default 20:16:47.404237+0000    Ice Received configuration update from daemon (initial)
default 20:16:47.405316+0000    Ice New connection 0x78e3b main
default 20:16:47.406495+0000    Ice CHECKIN: pid=2731
default 20:16:47.412491+0000    Ice CHECKEDIN: pid=2731 asn=0x0-0x7f07f foreground=1
default 20:16:47.412667+0000    Ice [0x147205940] activating connection: mach=false listener=true peer=false name=(anonymous)
default 20:16:47.412797+0000    Ice [0x147008770] activating connection: mach=false listener=false peer=true name=com.apple.xpc.anonymous.0x147205940.peer.0x147008770
default 20:16:47.414346+0000    Ice FRONTLOGGING: version 1
default 20:16:47.414397+0000    Ice Registered, pid=2731 ASN=0x0,0x7f07f
default 20:16:47.414799+0000    Ice [0x147305280] activating connection: mach=true listener=false peer=false name=com.apple.lsd.mapdb
default 20:16:47.415555+0000    Ice BringForward: pid=2731 asn=0x0-0x7f07f bringForward=1 foreground=1 uiElement=0 launchedByLS=1 modifiersCount=1 allDisabled=0
default 20:16:47.415580+0000    Ice BringFrontModifier: pid=2731 asn=0x0-0x7f07f Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
default 20:16:47.415610+0000    Ice BringForward: pid=2731 asn=0x0-0x7f07f
default 20:16:47.415642+0000    Ice SetFrontProcess: asn=0x0-0x7f07f options=0
default 20:16:47.419118+0000    Ice Current system appearance, (HLTB: 2), (SLS: 1)
default 20:16:47.420088+0000    Ice Current system appearance, (HLTB: 2), (SLS: 1)
default 20:16:47.420516+0000    Ice Post-registration system appearance: (HLTB: 2)
default 20:16:47.437171+0000    Ice Registering for test daemon availability notify post.
default 20:16:47.437293+0000    Ice notify_get_state check indicated test daemon not ready.
default 20:16:47.437383+0000    Ice notify_get_state check indicated test daemon not ready.
default 20:16:47.437465+0000    Ice notify_get_state check indicated test daemon not ready.
default 20:16:47.451797+0000    Ice NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 0
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x600000d75300
 (
    "<NSDarkAquaAppearance: 0x600000d75500>",
    "<NSSystemAppearance: 0x600000d74c00>"
)>
default 20:16:47.458609+0000    Ice [0x600001c6cb40] activating connection: mach=true listener=false peer=false name=com.apple.dock.fullscreen
default 20:16:47.459559+0000    Ice [0x600001f70900] activating connection: mach=true listener=false peer=false name=com.apple.fonts
default 20:16:47.466161+0000    Ice [0x600001c684b0] activating connection: mach=true listener=false peer=false name=com.apple.coreservices.appleevents
default 20:16:47.468595+0000    Ice SignalReady: pid=2731 asn=0x0-0x7f07f
default 20:16:47.469520+0000    Ice SIGNAL: pid=2731 asn=0x0x-0x7f07f
default 20:16:47.477560+0000    Ice No persisted cache on this platform.
default 20:16:47.477804+0000    Ice Initializing connection
default 20:16:47.477834+0000    Ice Removing all cached process handles
default 20:16:47.477854+0000    Ice Sending handshake request attempt #1 to server
default 20:16:47.477865+0000    Ice Creating connection to com.apple.runningboard
default 20:16:47.477875+0000    Ice [0x600001c740f0] activating connection: mach=true listener=false peer=false name=com.apple.runningboard
default 20:16:47.478619+0000    Ice Gained inheritances: {(
    <RBSInheritance| environment:(none) name:com.apple.launchservices.userfacing origID:568-536-2603 0>,
    <RBSInheritance| environment:(none) name:com.apple.launchservices.userfacing origID:568-536-2602 0>,
    <RBSInheritance| environment:(none) name:com.apple.launchservices.userfacing origID:568-536-2604 0>,
    <RBSInheritance| environment:(none) name:com.apple.launchservices.userfacing origID:568-536-2604 0>,
    <RBSInheritance| environment:(none) name:com.apple.frontboard.visibility origID:568-562-2605 0>
)}
default 20:16:47.478682+0000    Ice Handshake succeeded
default 20:16:47.478698+0000    Ice Identity resolved as app<application.com.jordanbaird.Ice.22508410.22508416(501)>
default 20:16:47.480175+0000    Ice [0x600001c720d0] activating connection: mach=true listener=false peer=false name=com.apple.pasteboard.1
default 20:16:47.489181+0000    Ice [0x600001c64000] activating connection: mach=true listener=false peer=false name=com.apple.window_proxies
default 20:16:47.489257+0000    Ice [0x600001c64000] invalidated on xpc_connection_cancel()
default 20:16:47.495883+0000    Ice [0x14701eec0] activating connection: mach=true listener=false peer=false name=com.apple.windowmanager.server
default 20:16:47.520000+0000    Ice Service <private> status: 3
default 20:16:47.527303+0000    Ice Lost inheritances: {(
    <RBSInheritance| environment:(none) name:com.apple.launchservices.userfacing origID:568-536-2602 0>
)}
default 20:16:47.565855+0000    Ice order window front conditionally: 1b9 related: 0
default 20:16:47.578548+0000    Ice [0x147097de0] activating connection: mach=true listener=false peer=false name=com.apple.iconservices
default 20:16:47.579190+0000    Ice [0x147098700] activating connection: mach=true listener=false peer=false name=com.apple.iconservices.store
default 20:16:47.593640+0000    Ice order window front conditionally: 1ba related: 0
default 20:16:47.594069+0000    Ice window SwiftUI.AppKitWindow 1b9 finishing close
default 20:16:47.594400+0000    Ice order window: 1b9 op: 0 relative: 0 related: 0
default 20:16:47.594443+0000    Ice window SwiftUI.AppKitWindow 1ba finishing close
default 20:16:47.613657+0000    Ice order window: 1ba op: 0 relative: 0 related: 0
default 20:16:47.680325+0000    Ice [0x600001c71b30] activating connection: mach=false listener=false peer=false name=com.apple.ViewBridgeAuxiliary
default 20:16:47.683655+0000    Ice [0x147276340] activating connection: mach=false listener=false peer=false name=(anonymous)
default 20:16:47.684087+0000    Ice [0x14711a120] activating connection: mach=false listener=true peer=false name=(anonymous)
default 20:16:47.684360+0000    Ice [0x600001c71b30] invalidated after the last release of the connection object
default 20:16:47.684628+0000    Ice terminate:
default 20:16:47.684714+0000    Ice Attempting sudden termination (1st attempt)
default 20:16:47.684726+0000    Ice Checking whether app should terminate
default 20:16:47.684748+0000    Ice Asking app delegate whether applicationShouldTerminate:
default 20:16:47.684757+0000    Ice replyToApplicationShouldTerminate:YES
default 20:16:47.684777+0000    Ice App termination approved
default 20:16:47.684787+0000    Ice Termination commencing
default 20:16:47.684792+0000    Ice Attempting sudden termination (2nd attempt)
default 20:16:47.685640+0000    Ice Termination complete. Exiting without sudden termination.
default 20:16:47.685652+0000    Ice Entering exit handler.
default 20:16:47.685661+0000    Ice Queueing exit procedure onto XPC queue. Any further messages sent will be discarded. activeSendTransactions=0
default 20:16:47.685700+0000    Ice Cancelling XPC connection. Any further reply handler invocations will not retry messages
default 20:16:47.685708+0000    Ice [0x600001c6c3c0] invalidated on xpc_connection_cancel()
default 20:16:47.685719+0000    Ice Exiting exit handler.
jordanbaird commented 7 months ago

Has a window appeared asking you to grant accessibility and screen recording permissions? If so, have you granted them?

ayndqy commented 7 months ago

No, it hasn't appeared. I've granted the access to screen recording and accessibility and now it works perfectly, thanks!

jordanbaird commented 7 months ago

Glad we got it working! I'll include a fix in the next release to make sure the problem doesn't happen again.

roberthawdon commented 2 months ago

This still seems to be an issue with the current version. I had to manually add Ice to Screen Recording and Accessibility before it would launch properly.

jordanbaird commented 2 months ago

@roberthawdon Good to know. I'll reopen this and look into a fix.

jordanbaird commented 2 weeks ago

@roberthawdon Did the latest release (0.11.1) fix it?