Is there a way to run a GUI application (e.g. Kdenlive) on a server but pipe the window to a remote desktop over SSH with the power of xorg to act as a "thin client"?

I mean, that's kind of what xorg was designed for, right?

I can't really find any information on how to actually do that tho.

Basically, I want "cloud" applications that appear as native applications and are running on my own hardware at home.

How would I set that up?
computer_think.png
@matrix that's not what I want. I don't want a whole desktop. I just want a single application in a window that'll automatically resize and shit and work as a native application.
@sjw @matrix hypothetically you could do this fairly easily with wayland since it hands each app a surface to draw on. not sure if anyone has done it yet tho
@sjw @roboneko @matrix There is https://github.com/any1/wayvnc for wlroots compositors been a while since I used it though so hopefully it's documentation is good.
@sjw @lanodan @matrix well lanodan answered which software to try. if you meant "how would that work", wayland keeps it simple by handing each app a private surface to draw pixels on plus some opaque callbacks for various things. so the app does whatever it wants to do with the gpu, cpu, whatever, writes whatever it wants out to the surface, and triggers the callback to tell the display manager that it's done

at that point the manager can do whatever it wants with the surface. usually that would be compositing it and updating the framebuffer on the gpu but it's free to encode it as video, save it to disk, send it over the network, whatever. the downside to this being that you're forced to stream video instead of draw commands which is very bandwidth hungry and if you use any compression on the video stream then text and other line drawings tends to become fuzzy. y'know, the usual VNC downsides that X can avoid in many cases

the upside is that it's conceptually simple so there isn't as much potential for weird glitches, unexpected security concerns, etc
@roboneko @sjw @matrix Also for wayland, everything the compositor does is on the GPU (unless you have no GPU or no drivers for it), so for a VNC kind of thing I would recommend encoding with an GPU-accelerated codec, as then shouldn't end up copying data, making it bandwidth efficient even at the level of your computer.

(OBS on sway with dmabuf does that)
(Also means that OpenGL games should involve no copying of things outside the GPU, which I think isn't the case in Xorg in many cases)
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.