Crates.io | transparent |
lib.rs | transparent |
version | 0.4.0 |
source | src |
created_at | 2021-10-15 00:15:26.171848 |
updated_at | 2023-07-31 20:27:53.500555 |
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 | 37,315 |
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)