summaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/wayfiresocket/Main.java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-08-02 20:46:48 +0200
committerLinnea Gräf <nea@nea.moe>2024-08-02 20:46:48 +0200
commit88b65e4742da2f268d615e2e75e52b3ec7329e44 (patch)
tree82b03237f80d9ff279b246782b55d805b794abf9 /src/main/java/moe/nea/wayfiresocket/Main.java
downloadwayfireprotocol-master.tar.gz
wayfireprotocol-master.tar.bz2
wayfireprotocol-master.zip
initialHEADmaster
Diffstat (limited to 'src/main/java/moe/nea/wayfiresocket/Main.java')
-rw-r--r--src/main/java/moe/nea/wayfiresocket/Main.java13
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();
+ }
+ }
+}