moaxcp / x11

An x11 protocol implementation and client for the jvm
MIT License
20 stars 3 forks source link

SocketChannel.socket() is not supported for UNIX protocol #34

Open Qwertovsky opened 4 months ago

Qwertovsky commented 4 months ago
Exception in thread "main" java.lang.UnsupportedOperationException: Not supported
    at java.base/sun.nio.ch.SocketChannelImpl.socket(SocketChannelImpl.java:233)
    at com.github.moaxcp.x11.x11client.X11Connection.connect(X11Connection.java:118)
    at com.github.moaxcp.x11.x11client.X11Connection.connect(X11Connection.java:145)
    at com.github.moaxcp.x11.x11client.X11Client.connect(X11Client.java:83)

To reproduce

try(X11Client client = X11Client.connect(new DisplayName(":1"))) {
} catch (IOException e) {
}
moaxcp commented 4 months ago

Thanks! I started working on this today!

moaxcp commented 4 months ago

I'm switching back to junixsocket but it uses a multi-release jar which is not supported by delombok. So I have to remove lombok from the x11-client module and release 0.18.2.

moaxcp commented 3 months ago

Everything should work now in 0.18.2. I was having trouble with the junixsocket modules but all of the examples work now.