summaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/wayfiresocket/Main.java
blob: 1c8160485b21110bfd84a9f978c227db26319c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();
		}
	}
}