diff options
author | Linnea Gräf <nea@nea.moe> | 2024-08-02 20:46:48 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-08-02 20:46:48 +0200 |
commit | 88b65e4742da2f268d615e2e75e52b3ec7329e44 (patch) | |
tree | 82b03237f80d9ff279b246782b55d805b794abf9 /src/main/java/moe/nea/wayfiresocket/Main.java | |
download | wayfireprotocol-master.tar.gz wayfireprotocol-master.tar.bz2 wayfireprotocol-master.zip |
Diffstat (limited to 'src/main/java/moe/nea/wayfiresocket/Main.java')
-rw-r--r-- | src/main/java/moe/nea/wayfiresocket/Main.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/wayfiresocket/Main.java b/src/main/java/moe/nea/wayfiresocket/Main.java new file mode 100644 index 0000000..1c81604 --- /dev/null +++ b/src/main/java/moe/nea/wayfiresocket/Main.java @@ -0,0 +1,13 @@ +package moe.nea.wayfiresocket; + +import java.nio.file.Path; + +public class Main { + public static void main(String[] args) throws Exception { + try (var socket = new WayfireSocket(Path.of("/tmp/wayfire-wayland-2.socket"))) { + System.out.println(socket.callMethod(new Ping())); + Run.Response response = socket.callMethod(new Run("/bin/echo")); + var pid = response.pid(); + } + } +} |