Sikuli only sees the desktop on Mac Big Sur

Asked by Hiram Landeros on 2020-12-06


My environment:
- Mac OS Big Sur 11.01
- SikuliX 2.0.4
- Java SE Runtime Environment (build 1.8.0_271-b09)

When trying to take a snapshot of an application, Sikuli only shows the desktop and also when trying to check a matching validation.

I only have one monitor.

On system preferences, security and privacy Java has access to screen recordings and also to accessibility.

Hiram Landeros

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Hiram Landeros
Last query:
Last reply:
RaiMan (raimund-hocke) said : #2

carefully check again.

There might be more than one java entry in the list at SysPrefs -> S&P -> Screen Recording.

Try to start the IDE from a Terminal
java -jar <path-to>/sikuli....jar

I am using macOS 11.0.1 too and everything works.

Hiram Landeros (gueritol) said : #3

I messed around and i must have now a couple of versions of java active :(
And I got it to work. Sadly, i can't tell which change made that happen (sorry, was a bit fustrated)
Now it's back to working status

RaiMan (raimund-hocke) said : #4

Sorry for your frustration.
... but the implementation of all those macOS privacy shields seems to be still in some beta state.

If you want to reduce the mess a bit:
- remove all Java entries
- start SikuliX
- activate the now new and only one java entry

it seems, that for all ever used java version (even updated ones) a new entry is produced and not automatically activated.

... but I am not sure - Apple's secret ;-))