uebersicht icon indicating copy to clipboard operation
uebersicht copied to clipboard

run('caffeinate &') does not work on Apple Silicon.

Open HeySora opened this issue 3 years ago • 8 comments

I'm using Übersicht 1.6.69 on an Intel Mac as well as a M1 Mac, and I am experiencing a problem.

https://user-images.githubusercontent.com/17962248/119263551-ca3c9080-bbdf-11eb-8ccf-34b50c2aa492.mov

I am using the simple-bar widget which includes a way of running caffeinate from Übersicht. This does not work anymore.

require('uebersicht').run('caffeinate &') is the minimum code needed for reproducing this issue. Running it from the Übersicht development console exhibits the same issue.

No errors are showing in Console.app about caffeinate nor its PID. By looking at Übersicht errors, this is the only warning showing up (I'm unsure if it is related to the issue):

Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for accessing={identifier=tracesOf.Uebersicht, pid=56467, auid=501, euid=501, binary_path=/Applications/Übersicht.app/Contents/MacOS/Übersicht}, requesting={identifier=tracesOf.Uebersicht, pid=56467, auid=501, euid=501, binary_path=/Applications/Übersicht.app/Contents/MacOS/Übersicht},

Launching caffeinate and caffeinate & directly from the Terminal does not show this behavior.

HeySora avatar Aug 05 '21 12:08 HeySora

I discovered that running arch -arch x86_64 caffeinate under the terminal exhibits the same issue, and since Übersicht is still an x86_64 program, caffeinate would run as x86_64 by default.

require('uebersicht').run('arch -arch arm64 caffeinate &') would work here.

Are there any plans for making an universal version of Übersicht?

HeySora avatar Oct 14 '21 10:10 HeySora

There are! Have a look at https://github.com/felixhageloh/uebersicht/issues/444#issuecomment-890857076

In short, I have an unreleased universal binary build. However, it has some glitches, which I am unable to debug because I don't own a machine with Apple Silicon yet (waiting for Apple to release the 15" pro)

felixhageloh avatar Oct 15 '21 13:10 felixhageloh

I should also add: lack of time 😅

felixhageloh avatar Oct 15 '21 13:10 felixhageloh

Oh alright! I'm gonna try :)

Don't worry about the lack of time, it's already awesome as it is! Thank you 😊

HeySora avatar Oct 15 '21 19:10 HeySora

There are! Have a look at #444 (comment)

In short, I have an unreleased universal binary build. However, it has some glitches, which I am unable to debug because I don't own a machine with Apple Silicon yet (waiting for Apple to release the 15" pro)

Now that M1Pro/Max is here, I was wondering if you were able to get a hand on one and also able to come up with a time to work on M1 native node support.

I was trying to replicate what @flurie did at #444 but without success.

Thank you 🙂

neoswallow avatar Dec 14 '21 06:12 neoswallow

Yes I got mine yesterday!

felixhageloh avatar Dec 14 '21 07:12 felixhageloh

For what it's worth, I've been running the unreleased universal build with an updated localnode and I never had ANY issues with Übersicht so far :D

(M1 Pro on Monterey)

HeySora avatar Dec 14 '21 07:12 HeySora

ah, interesting data point, thanks!

felixhageloh avatar Dec 14 '21 08:12 felixhageloh