I'm running MacOS 11.6.6, and I want to do something that is probably impossible on a Mac running that OS version (and possibly all versions). However, just in case I am overlooking something, I thought I would ask here, just in case there's a way, after all, for me to implement what I want. Hope springs eternal!
I know that I can run XQuartz to get an X Server running on my Mac, and then, I know how to set up an ssh-managed connection between my Linux box and my Mac in order to get an X-based utility that is initiated on the Mac under XQuartz (for example, the xterm program) to have its application window appear on my Linux box, even though the xterm program itself is running on my Mac.
What I am trying to do is something similar, but for a non-XQuartz-based program running on my Mac to have its application window show up on my Linux box. I know I can use something like VNC, NoMachine, AnyDesk, etc. to share the entire Mac desktop with my Linux box. However, I just want one (and only one!) Mac application window to show up on the Linux box, not my entire Mac desktop.
For example, suppose I am running the Chrome browser on my Mac. It does not have an X-Windows-based version that runs under XQuartz. I would like to somehow cause the application window for this Mac-resident Chrome browser to somehow show up on my Linux box ... and again, I do not want the entire Mac desktop to show up.
Are there any tricks or hacks or perhaps 3rd-party utilities which would allow me to do such a thing?
As I mentioned, I think that what I want to do is probably impossible ... but could I be mistaken about that impossibility?
Thank you in advance.
UPDATE: I had forgotten to mention that I want to continue to be able to use my Mac for other applications while the one application is redirected to my Linux box. This means that I can't have that one application take up the entire screen and then just share the desktop via VNC, AnyDesk, NoMachine, etc.
And ideally, I'd like it to work the way a remotely displayed X application works: where its window does not show up at all on the host it's running on, and instead, the window shows up on the remote host via the remote host's X server.
Based on the replies I have received, I am even more convinced now that what I want is almost certainly impossible. But maybe ... maybe ... perhaps via some esoteric, not-widely-known hack, there might be a way to accomplish this. Like I said above, hope springs eternal!
And now I stand corrected about the use of XQuartz. I understand now that I don't need that to be running on the Mac side in order to use X forwarding via ssh in order to get X-based apps on the Mac to display their windows remotely. Thanks again to @nohillside for setting me straight about this fact.