Add desktop method to CommandExt - #158855
Conversation
|
Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @jackh726 (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
aa3867e to
fc70bd5
Compare
fc70bd5 to
460704f
Compare
Adds the `desktop` method to the Windows `CommandExt` trait to enable setting the `lpDesktop` field of the STARTUPINFO passed to the Windows `CreateProcess` API call.
460704f to
d33b74b
Compare
|
r? libs |
|
r? ChrisDenton perhaps? I think this seems OK but have not reviewed the Windows API correctness closely or whether the UI test is reasonable. |
|
|
|
Looks good to me, thanks! Sorry for the delay here. I'm honestly not 100% sure the test will work in CI but I'm 90% sure so let's see how it goes... @bors r+ rollup |
…=ChrisDenton Add `desktop` method to `CommandExt` This PR enables setting the `lpDesktop` field of the STARTUPINFO passed to the Windows `CreateProcess` API call by adding a `desktop` builder method to the [Windows-specific CommandExt extension trait](https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html). Accepted ACP: rust-lang/libs-team#221 Tracking issue: rust-lang#158852
…=ChrisDenton Add `desktop` method to `CommandExt` This PR enables setting the `lpDesktop` field of the STARTUPINFO passed to the Windows `CreateProcess` API call by adding a `desktop` builder method to the [Windows-specific CommandExt extension trait](https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html). Accepted ACP: rust-lang/libs-team#221 Tracking issue: rust-lang#158852
…=ChrisDenton Add `desktop` method to `CommandExt` This PR enables setting the `lpDesktop` field of the STARTUPINFO passed to the Windows `CreateProcess` API call by adding a `desktop` builder method to the [Windows-specific CommandExt extension trait](https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html). Accepted ACP: rust-lang/libs-team#221 Tracking issue: rust-lang#158852
…=ChrisDenton Add `desktop` method to `CommandExt` This PR enables setting the `lpDesktop` field of the STARTUPINFO passed to the Windows `CreateProcess` API call by adding a `desktop` builder method to the [Windows-specific CommandExt extension trait](https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html). Accepted ACP: rust-lang/libs-team#221 Tracking issue: rust-lang#158852
…uwer Rollup of 20 pull requests Successful merges: - #152617 (std: implement `sleep_until` for Fuchsia) - #158934 (diagnostics: fix `let x: vec![]` suggestion pointing into stdlib) - #161277 (bootstrap: Move all non-module items out of the crate root) - #161295 (std: don't panic on long-elapsed deadlines for `sleep_until`) - #161368 (Double-word align `_Unwind_Exception`) - #161370 (Uplift rustfmt macro formatting fix) - #161378 (`FlowSensitiveAnalysis` cleanups) - #158032 (Offload expose device selection) - #158855 (Add `desktop` method to `CommandExt`) - #161199 (Add regression test for non lifetime binders) - #161302 (Add regression test for inconsistent import resolution from issue 147208) - #161329 (Add regression tests for a few fixed issues with E-needs-test) - #161330 (Add regression test for nested RPIT not an iterator ICE) - #161351 (Cleanup: Move impl of `#[rustc_dump_object_lifetime_defaults]`) - #161355 (Add file path to some archive build errors) - #161373 (Allow running EC2 jobs locally) - #161393 (Configure LLM policy URL for triagebot) - #161409 (Add back `tests/rustdoc-gui/notable-trait.goml` test) - #161410 (Fix rustdoc remapping `documentation` scope documentation) - #161415 (Update expect messages in path docs to better follow guidelines)
…=ChrisDenton Add `desktop` method to `CommandExt` This PR enables setting the `lpDesktop` field of the STARTUPINFO passed to the Windows `CreateProcess` API call by adding a `desktop` builder method to the [Windows-specific CommandExt extension trait](https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html). Accepted ACP: rust-lang/libs-team#221 Tracking issue: rust-lang#158852
Rollup of 25 pull requests Successful merges: - #152617 (std: implement `sleep_until` for Fuchsia) - #158934 (diagnostics: fix `let x: vec![]` suggestion pointing into stdlib) - #160995 (Tiny readability cleanups for initialization dataflow analyses) - #161277 (bootstrap: Move all non-module items out of the crate root) - #161295 (std: don't panic on long-elapsed deadlines for `sleep_until`) - #161368 (Double-word align `_Unwind_Exception`) - #161370 (Uplift rustfmt macro formatting fix) - #161378 (`FlowSensitiveAnalysis` cleanups) - #161420 (Bump wasm-component-ld to 0.5.30) - #161429 (Tighten allocator `Send`/`Sync` requirements for `Arc` in preparation for refactor) - #158032 (Offload expose device selection) - #158855 (Add `desktop` method to `CommandExt`) - #160299 (Stabilize `bool::toggle`) - #160842 (Apply `&[T]` visualizer to `*const [T]`, `*mut [T]` and `Box<[T]>`) - #160981 (Partially support building and locating wasm proc-macros) - #161199 (Add regression test for non lifetime binders) - #161212 (rust-installer/install-template.sh: catch cp(1) error when installing…) - #161302 (Add regression test for inconsistent import resolution from issue 147208) - #161329 (Add regression tests for a few fixed issues with E-needs-test) - #161330 (Add regression test for nested RPIT not an iterator ICE) - #161331 (Bitset simplifications) - #161340 (rustdoc: enable scrolling only on table/code) - #161351 (Cleanup: Move impl of `#[rustc_dump_object_lifetime_defaults]`) - #161355 (Add file path to some archive build errors) - #161373 (Allow running EC2 jobs locally)
Rollup of 25 pull requests Successful merges: - #152617 (std: implement `sleep_until` for Fuchsia) - #158934 (diagnostics: fix `let x: vec![]` suggestion pointing into stdlib) - #160995 (Tiny readability cleanups for initialization dataflow analyses) - #161277 (bootstrap: Move all non-module items out of the crate root) - #161295 (std: don't panic on long-elapsed deadlines for `sleep_until`) - #161368 (Double-word align `_Unwind_Exception`) - #161370 (Uplift rustfmt macro formatting fix) - #161378 (`FlowSensitiveAnalysis` cleanups) - #161420 (Bump wasm-component-ld to 0.5.30) - #161429 (Tighten allocator `Send`/`Sync` requirements for `Arc` in preparation for refactor) - #158032 (Offload expose device selection) - #158855 (Add `desktop` method to `CommandExt`) - #160299 (Stabilize `bool::toggle`) - #160842 (Apply `&[T]` visualizer to `*const [T]`, `*mut [T]` and `Box<[T]>`) - #160981 (Partially support building and locating wasm proc-macros) - #161199 (Add regression test for non lifetime binders) - #161212 (rust-installer/install-template.sh: catch cp(1) error when installing…) - #161302 (Add regression test for inconsistent import resolution from issue 147208) - #161329 (Add regression tests for a few fixed issues with E-needs-test) - #161330 (Add regression test for nested RPIT not an iterator ICE) - #161331 (Bitset simplifications) - #161340 (rustdoc: enable scrolling only on table/code) - #161351 (Cleanup: Move impl of `#[rustc_dump_object_lifetime_defaults]`) - #161355 (Add file path to some archive build errors) - #161373 (Allow running EC2 jobs locally)
This PR enables setting the
lpDesktopfield of the STARTUPINFO passed to the WindowsCreateProcessAPI call by adding adesktopbuilder method to the Windows-specific CommandExt extension trait.Accepted ACP: rust-lang/libs-team#221
Tracking issue: #158852