| Crates.io | transparent |
| lib.rs | transparent |
| version | 0.4.2 |
| created_at | 2021-10-15 00:15:26.171848+00 |
| updated_at | 2025-07-15 21:35:38.909241+00 |
| description | A crate for running processes on a virtual desktop / virtual X server environment. |
| homepage | |
| repository | https://github.com/OpenByteDev/transparent |
| max_upload_size | |
| id | 465177 |
| size | 39,544 |
A crate for running processes on a virtual desktop / virtual X server environment.
This will spawn some program on a new virtual desktop / virtual X server environment.
Command::new("some program")
.spawn_transparent(&TransparentRunner::new())
.unwrap()
.wait()
.unwrap();
On windows transparent uses CreateDesktopW to create a new desktop and then spawns a child process using CreateProcessW with lpStartupInfo.lpDesktop set to the new desktop. (Actually a helper process is spawned which then in turn spawns the target process; see virtual-desktop-runner).
On unix transparent uses xvfb-run which runs the target application in a virtual X server environment.
It is currently impossible to determine the specified Stdio of a Command without using mem::transmute or similar, which is why transparent always uses Stdio::piped().
Licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT)