3 ms·
"Windows programs for Linux"? It doesn't really have any better filesystem integration. The filesystem is stored on a disk image on WSL2 as on any other VM. You
by AshamedCaptain 6y ago
"Windows programs for Linux"? It doesn't really have any better filesystem integration. The filesystem is stored on a disk image on WSL2 as on any other VM. You can mount other host filesystems from inside the VM in any hypervisor I know of.
Ack on XQuartz being crap (thought it does have Retina support these days, at least for non-rootless mode), but this is not really a problem of the VM.
- danieldk 6y ago"Windows programs for Linux"? Whoops, typo. Windows programs from Linux, I'll fix that. You can mount other host filesystems from inside the VM in any hypervisor I know of. In most hypervisors you can't do a notepad.exe foo.txt or TextEdit.app foo.txt for that matter in a Linux VM,
- microcolonel 6y agoWith virtio-fs I think this is becoming more doable. Of course, it's not quite as fast as running a guest filesystem on virtio-blk yet, but maybe it'll get there.
- fomine3 6y agoWSL can run `notepad.exe foo` from bash. Not only fs integration.
- microcolonel 6y ago> WSL can run `notepad.exe foo` from bash. Isn't that just a binary loader, like you can do with wine/qemu on any Linux? Surely it's mostly just proxying the pipes, replicating the working directory, and maybe keeping some of the environment variables. The filesystem integration seems like the trickiest part of that altogether.
- skinkestek 6y agoIt works so crazy well that sometimes it works and then I stop and think: how did that work. Example: I type code ./somefolder in WSL and it opens VSCode on Windows, editing the folder I specified. Edit: danieldk replied just before me, but I think my answer adds to that instead of just duplicating danieldks. Also danieldks answer highlights something important: it doesn't seem to be just magic shell wrappers (or if it is they are truly magic). VSCode is somewhat special when it comes to editing files, Notepad is not.