Preparations for macos permission system checks

This commit is contained in:
crschnick 2023-02-12 19:45:08 +00:00
parent 44f7b4922d
commit a4b3729896

View file

@ -0,0 +1,13 @@
package io.xpipe.app.util;
import io.xpipe.core.store.ShellStore;
public class MacOsPermissions {
public static boolean waitFor() throws Exception {
try (var pc = ShellStore.local().create().start()) {
pc.executeSimpleCommand("tell application \"System Events\" to keystroke \"t\"");
}
return true;
}
}