Cannot get X11 forwarding to work between 2 mac machines on images, pdfs, textfiles, etc
I have 2 mac machines, a macBook pro running mojave and an iMac pro running big sur. After installing xQuartz, I can ssh from the mac book to the iMac with the -X option. X11 forwarding works for things like xclock and xlogo, but when I try to display pdfs, or images, or even text files, on the local mac book they get displayed on the remote iMac. The DISPLAY variable seems to get set properly, otherwise xclock would not get displayed on the local machine.
Is there something I'm missing, or is what I'm trying to with X11 just not possible? If the latter, will VNC do what I want, or will something else work?
I know Macs have their own proprietary mechanism for doing this, but I want something that will work the same not only from mac to mac, but for mac to linux and for windows to linux. I thought X11 would do the trick.
iMac Pro, macOS 11.3