felixhageloh / uebersicht

ˈyːbɐˌzɪçt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

HeySora opened this issue · comments

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

Enregistrement.de.l.ecran.2021-05-23.a.15.56.37.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.

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?

commented

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)

commented

I should also add: lack of time 😅

Oh alright! I'm gonna try :)

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

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 🙂

commented

Yes I got mine yesterday!

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)

commented

ah, interesting data point, thanks!