mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Preparations for macos permission system checks
This commit is contained in:
parent
44f7b4922d
commit
a4b3729896
1 changed files with 13 additions and 0 deletions
13
app/src/main/java/io/xpipe/app/util/MacOsPermissions.java
Normal file
13
app/src/main/java/io/xpipe/app/util/MacOsPermissions.java
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue