4 ms·
I'm personally quite excited about this. Been experimenting with WSL2 on my desktop lately, trying to figure out if I could port over my existing dev workflow f
by avolcano 6y ago
I'm personally quite excited about this. Been experimenting with WSL2 on my desktop lately, trying to figure out if I could port over my existing dev workflow from Mac. One stumbling block I had was that I've been writing servers in Kotlin lately, using IntellIJ, which is more or less the only game in town for writing Kotlin.
I wanted to run my app (and tests) in WSL, so I could closer-match my production Linux environments (and continue using all the bash scripts and ad-hoc CLI calls I had in my project), but if I wanted to run in IntelliJ on Windows, this would be tricky: IntelliJ doesn't support the WSL2 virtual file system, so I couldn't leave my files "in Linux," which means I'd have to run my server using the mounted C:\ drive in WSL, which is much slower. More importantly, I'd have to duplicate all my dependencies between Windows and Linux just to get the IDE working correctly, and couldn't e.g. use the IntellIJ test runner to run tests under Linux.
So... I just grabbed an X Server[1], installed XFCE in Ubuntu, installed IntelliJ, and then just started running it through that. And it works flawlessly as an app! I use the floating window mode in X410 so it just looks like any other Windows app (I mean, it's already a Java desktop app, so it's not exactly platform-native to begin with).
The only issues I had were clearly just with the X Server integration: sometimes, when I had other windows open over IntellIJ, tooltips would still start showing up in IntelliJ from whatever was underneath my mouse, sometimes right click menus just mysteriously stopped working until I restarted the server, etc. The latter was particularly annoying since you can't restart the server without restarting the app, but was infrequent enough I was okay living with it.
That said: I am hopeful that this new Windows integration will perform better and with fewer bugs than the X server implementations out there right now. The fact that it will support GPU integration makes me think it must be doing more than just a traditional X server - in fact, doesn't that require Wayland? Curious how this is implemented under the hood.
[1] I'm using https://x410.dev/ https://x410.dev/ but there's a decent amount of options. This one is paid, but at least is on sale right now.