elast0ny / shared_memory

A Rust wrapper around native shared memory for Linux and Windows
377 stars 51 forks source link

Sharing memory between a Windows Wine process and a Linux process doesn't work #108

Open skligys opened 2 months ago

skligys commented 2 months ago

It looks to me that is just because on Windows files representing shmem objects go into

C:\Users\<user>\Temp\shared_memory-rs

and on Linux into

/dev/shm

Once I forced the Windows/Wine process to create a file in Z:\\dev\\shm, which in Wine corresponds to Linux's /dev/shm, sharing seems to work fine.

What do you think of a new wine feature where windows.rs get_tmp_dir() would just return Ok(PathBuf::from("Z:\\dev\\shm")) ?

skligys commented 2 months ago

Why would I want to do that? My use case: