Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Qwertovsky opened this issue Jun 23, 2024 · 3 comments
Open

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

Qwertovsky opened this issue Jun 23, 2024 · 3 comments

Comments

@Qwertovsky
Copy link

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
Copy link
Owner

moaxcp commented Jun 24, 2024

Thanks! I started working on this today!

@moaxcp
Copy link
Owner

moaxcp commented Jun 24, 2024

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
Copy link
Owner

moaxcp commented Jul 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants