"Could not restart" after waking from sleep

Describe the bug
When waking my Mac from sleep and clicking "Restart" in the BTT menu bar, I get this error.

There was an issue restarting BetterTouchTool. This can usually be fixed by opening the BTTRelaunch app manually once. BTT will now show the folder that contains the BTTRelaunch app.

When clicking Restart manually, the error is shown, but after 3-5 seconds, BetterTouchTool manages to restart successfully by itself.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
n/a

Screenshots

Device information:

  • Type of Mac: MacBook Air M2
  • macOS version: Monterey 12.5
  • BetterTouchTool version: 3.938 (2101) – also happens on latest stable

Try opening the BTT Relaunch app manually once (open /Applications/BetterTouchTool.app/Contents/Resources/BTTRelaunch.app ). Maybe it was denied permissions the first time BTT launched

If that doesn't help, delete BTT and download a fresh copy

Thanks for the quick response.

I'll note that BTT manages to restart by itself, so the message seems like a "false-positive".

I've launched BTTRelaunch.app several times via the Finder and Terminal to no avail (the dialog doesn't show where it is, by the way.)

I just rm -rf'd /Applications/BetterTouchTool.app and downloaded it again, same behaviour.

BTTRelaunch.app doesn't seem to do anything. BTT still seems to restart fine when I click Restart in the menu (after closing the Could not restart dialog.)

BTTRelaunch doesn't do anything visible, but it's necessary to restart without causing issues. When this message appears BTT falls back to a very old way of relaunching an app - this still works but comes with multiple issues.

BTTRelaunch should always be visible in Activity Monitor

Could you go to Help -> Export Diagnostic Debug Info and send the result to andreas@folivora.aI? This will at least tell me why the message is shown.

Thanks again. Sent zip with debug files just now.

Edit: Also, yes, BTTRelaunch is present in Activity monitor.

Unfortunately the log shows that the system thinks there is no BTTRelaunch running. BTT relies on the info it gets from the system, but the system returns apparently invalid information in your case. I don't know what could cause this, is there anything special about your macOS installation?

Are you running as standard admin user or do maybe use an account with fewer permissions?