Windows shell replacement in Rust: taskbar, file manager, NTFS search, task manager, disk cleaner. One installer exe.
Rust
Icons for chrome-rs, rust-search, debloat, purge, rs-du, rs-shell, reshell; rust-explorer window icon; topbar pins File Explorer once; Win+E picks the newest rust-explorer
Lemxy4726f6317961
diff --git a/Cargo.lock b/Cargo.lockindex e476956..c25c41e 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -34,6 +34,7 @@ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"name = "debloat"version = "0.1.0"dependencies = [+ "embed-resource","winrust-common",]@@ -175,6 +176,9 @@ dependencies = [[[package]]name = "purge"version = "0.1.0"+dependencies = [+ "embed-resource",+][[package]]name = "quote"@@ -189,6 +193,7 @@ dependencies = [name = "reshell"version = "0.1.0"dependencies = [+ "embed-resource","windows-sys","winrust-common",]@@ -197,6 +202,7 @@ dependencies = [name = "rs-du"version = "0.1.0"dependencies = [+ "embed-resource","windows-sys","winrust-common",]@@ -205,6 +211,7 @@ dependencies = [name = "rs-shell"version = "0.1.0"dependencies = [+ "embed-resource","windows-sys","winrust-common",]diff --git a/ReShell/Cargo.toml b/ReShell/Cargo.tomlindex cefbc94..a6b78a8 100644--- a/ReShell/Cargo.toml+++ b/ReShell/Cargo.toml@@ -7,3 +7,6 @@ license = "MIT OR Apache-2.0"[dependencies]winrust-common = { path = "../common" }windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_System_Com", "Win32_System_Console", "Win32_Graphics_Gdi", "Win32_System_Registry", "Win32_System_Threading", "Win32_Security", "Win32_System_LibraryLoader", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging", "Win32_UI_Input_KeyboardAndMouse"] }++[build-dependencies]+embed-resource = "3"diff --git a/ReShell/app.ico b/ReShell/app.iconew file mode 100644index 0000000..4831089Binary files /dev/null and b/ReShell/app.ico differdiff --git a/ReShell/app.rc b/ReShell/app.rcnew file mode 100644index 0000000..0a9daf1--- /dev/null+++ b/ReShell/app.rc@@ -0,0 +1 @@+1 ICON "app.ico"diff --git a/ReShell/build.rs b/ReShell/build.rsnew file mode 100644index 0000000..5b34b48--- /dev/null+++ b/ReShell/build.rs@@ -0,0 +1,5 @@+fn main() {+ println!("cargo:rerun-if-changed=app.rc");+ println!("cargo:rerun-if-changed=app.ico");+ embed_resource::compile("app.rc", embed_resource::NONE).manifest_optional().unwrap(); // icon only+}diff --git a/ReShell/src/hotkeys.rs b/ReShell/src/hotkeys.rsindex 36f7923..2976bc6 100644--- a/ReShell/src/hotkeys.rs+++ b/ReShell/src/hotkeys.rs@@ -45,7 +45,9 @@ fn open_files() {use std::{path::PathBuf, process::{Command, Stdio}};let mine = std::env::var_os("LOCALAPPDATA").map(|b| PathBuf::from(b).join(r"plugin-launcher\bin\rust-explorer.exe"));let beside = std::env::current_exe().ok().map(|e| e.with_file_name("rust-explorer.exe"));- let exe = [mine, beside].into_iter().flatten().find(|p| p.exists()).unwrap_or_else(|| "explorer.exe".into());+ let installed = std::env::var_os("ProgramFiles").map(|b| PathBuf::from(b).join(r"rust-explorer\rust-explorer.exe"));+ // the newest copy wins: a stale one in the user's folder must not shadow the installed one (two bar buttons, old UI)+ let exe = [installed, mine, beside].into_iter().flatten().filter_map(|p| Some((p.metadata().ok()?.modified().ok()?, p))).max().map(|(_, p)| p).unwrap_or_else(|| "explorer.exe".into());let _ = Command::new(exe).stdin(Stdio::null()).stdout(Stdio::null()).stderr(Stdio::null()).spawn();}diff --git a/plugins/chrome-rs/Cargo.lock b/plugins/chrome-rs/Cargo.lockindex e03a487..c5edcc5 100644--- a/plugins/chrome-rs/Cargo.lock+++ b/plugins/chrome-rs/Cargo.lock@@ -297,6 +297,7 @@ version = "0.1.0"dependencies = ["ab_glyph_rasterizer","arboard",+ "embed-resource","encoding_rs","fontdue","image",@@ -528,6 +529,20 @@ version = "0.8.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "edf234dd1594d6dd434a8fb8cada51ddbbc593e40e4a01556a0b31c62da2775b"+[[package]]+name = "embed-resource"+version = "3.0.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6168487b5e7eb2673e6efe1200b1848016e436a6ca0b8031bf04bd9d493a249f"+dependencies = [+ "cc",+ "memchr",+ "rustc_version",+ "toml",+ "vswhom",+ "winreg",+]+[[package]]name = "encoding_rs"version = "0.8.44"@@ -1925,6 +1940,15 @@ dependencies = ["zmij",]+[[package]]+name = "serde_spanned"+version = "1.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782"+dependencies = [+ "serde_core",+]+[[package]]name = "shlex"version = "2.0.1"@@ -2226,6 +2250,21 @@ dependencies = ["pin-project-lite",]+[[package]]+name = "toml"+version = "1.2.1+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7"+dependencies = [+ "indexmap",+ "serde_core",+ "serde_spanned",+ "toml_datetime",+ "toml_parser",+ "toml_writer",+ "winnow",+]+[[package]]name = "toml_datetime"version = "1.1.3+spec-1.1.0"@@ -2256,6 +2295,12 @@ dependencies = ["winnow",]+[[package]]+name = "toml_writer"+version = "1.2.0+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"+[[package]]name = "tracing"version = "0.1.44"@@ -2396,6 +2441,26 @@ version = "0.9.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"+[[package]]+name = "vswhom"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"+dependencies = [+ "libc",+ "vswhom-sys",+]++[[package]]+name = "vswhom-sys"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"+dependencies = [+ "cc",+ "libc",+]+[[package]]name = "walkdir"version = "2.5.0"@@ -2778,6 +2843,16 @@ dependencies = ["memchr",]+[[package]]+name = "winreg"+version = "0.56.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10"+dependencies = [+ "cfg-if",+ "windows-sys 0.61.2",+]+[[package]]name = "wit-bindgen"version = "0.57.1"diff --git a/plugins/chrome-rs/Cargo.toml b/plugins/chrome-rs/Cargo.tomlindex 44cc82a..730053f 100644--- a/plugins/chrome-rs/Cargo.toml+++ b/plugins/chrome-rs/Cargo.toml@@ -28,3 +28,6 @@ ttf-parser = "0.25"ab_glyph_rasterizer = "0.1"woff2-patched = "0.4"++[build-dependencies]+embed-resource = "3"diff --git a/plugins/chrome-rs/app.ico b/plugins/chrome-rs/app.iconew file mode 100644index 0000000..1e54c3cBinary files /dev/null and b/plugins/chrome-rs/app.ico differdiff --git a/plugins/chrome-rs/app.rc b/plugins/chrome-rs/app.rcnew file mode 100644index 0000000..0a9daf1--- /dev/null+++ b/plugins/chrome-rs/app.rc@@ -0,0 +1 @@+1 ICON "app.ico"diff --git a/plugins/chrome-rs/build.rs b/plugins/chrome-rs/build.rsnew file mode 100644index 0000000..5b34b48--- /dev/null+++ b/plugins/chrome-rs/build.rs@@ -0,0 +1,5 @@+fn main() {+ println!("cargo:rerun-if-changed=app.rc");+ println!("cargo:rerun-if-changed=app.ico");+ embed_resource::compile("app.rc", embed_resource::NONE).manifest_optional().unwrap(); // icon only+}diff --git a/plugins/debloat/Cargo.toml b/plugins/debloat/Cargo.tomlindex 485bcbe..694d5da 100644--- a/plugins/debloat/Cargo.toml+++ b/plugins/debloat/Cargo.toml@@ -6,3 +6,6 @@ license = "MIT OR Apache-2.0"[dependencies]winrust-common = { path = "../../common" }++[build-dependencies]+embed-resource = "3"diff --git a/plugins/debloat/app.ico b/plugins/debloat/app.iconew file mode 100644index 0000000..8b31880Binary files /dev/null and b/plugins/debloat/app.ico differdiff --git a/plugins/debloat/app.rc b/plugins/debloat/app.rcnew file mode 100644index 0000000..0a9daf1--- /dev/null+++ b/plugins/debloat/app.rc@@ -0,0 +1 @@+1 ICON "app.ico"diff --git a/plugins/debloat/build.rs b/plugins/debloat/build.rsnew file mode 100644index 0000000..5b34b48--- /dev/null+++ b/plugins/debloat/build.rs@@ -0,0 +1,5 @@+fn main() {+ println!("cargo:rerun-if-changed=app.rc");+ println!("cargo:rerun-if-changed=app.ico");+ embed_resource::compile("app.rc", embed_resource::NONE).manifest_optional().unwrap(); // icon only+}diff --git a/plugins/purge/Cargo.toml b/plugins/purge/Cargo.tomlindex 307f4f6..ce6d87f 100644--- a/plugins/purge/Cargo.toml+++ b/plugins/purge/Cargo.toml@@ -3,3 +3,6 @@ name = "purge"version = "0.1.0"edition = "2024"license = "MIT OR Apache-2.0"++[build-dependencies]+embed-resource = "3"diff --git a/plugins/purge/app.ico b/plugins/purge/app.iconew file mode 100644index 0000000..cd7bb62Binary files /dev/null and b/plugins/purge/app.ico differdiff --git a/plugins/purge/app.rc b/plugins/purge/app.rcnew file mode 100644index 0000000..0a9daf1--- /dev/null+++ b/plugins/purge/app.rc@@ -0,0 +1 @@+1 ICON "app.ico"diff --git a/plugins/purge/build.rs b/plugins/purge/build.rsnew file mode 100644index 0000000..5b34b48--- /dev/null+++ b/plugins/purge/build.rs@@ -0,0 +1,5 @@+fn main() {+ println!("cargo:rerun-if-changed=app.rc");+ println!("cargo:rerun-if-changed=app.ico");+ embed_resource::compile("app.rc", embed_resource::NONE).manifest_optional().unwrap(); // icon only+}diff --git a/plugins/rs-du/Cargo.toml b/plugins/rs-du/Cargo.tomlindex 3000cc8..ce4768b 100644--- a/plugins/rs-du/Cargo.toml+++ b/plugins/rs-du/Cargo.toml@@ -7,3 +7,6 @@ license = "MIT OR Apache-2.0"[dependencies]winrust-common = { path = "../../common" }windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Console", "Win32_System_IO", "Win32_System_Ioctl"] }++[build-dependencies]+embed-resource = "3"diff --git a/plugins/rs-du/app.ico b/plugins/rs-du/app.iconew file mode 100644index 0000000..17204ccBinary files /dev/null and b/plugins/rs-du/app.ico differdiff --git a/plugins/rs-du/app.rc b/plugins/rs-du/app.rcnew file mode 100644index 0000000..0a9daf1--- /dev/null+++ b/plugins/rs-du/app.rc@@ -0,0 +1 @@+1 ICON "app.ico"diff --git a/plugins/rs-du/build.rs b/plugins/rs-du/build.rsnew file mode 100644index 0000000..5b34b48--- /dev/null+++ b/plugins/rs-du/build.rs@@ -0,0 +1,5 @@+fn main() {+ println!("cargo:rerun-if-changed=app.rc");+ println!("cargo:rerun-if-changed=app.ico");+ embed_resource::compile("app.rc", embed_resource::NONE).manifest_optional().unwrap(); // icon only+}diff --git a/plugins/rs-shell/Cargo.toml b/plugins/rs-shell/Cargo.tomlindex 46ecacd..0954860 100644--- a/plugins/rs-shell/Cargo.toml+++ b/plugins/rs-shell/Cargo.toml@@ -7,3 +7,6 @@ license = "MIT OR Apache-2.0"[dependencies]winrust-common = { path = "../../common" }windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Graphics_Dwm", "Win32_System_Console", "Win32_System_RemoteDesktop", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging"] }++[build-dependencies]+embed-resource = "3"diff --git a/plugins/rs-shell/app.ico b/plugins/rs-shell/app.iconew file mode 100644index 0000000..c3342b7Binary files /dev/null and b/plugins/rs-shell/app.ico differdiff --git a/plugins/rs-shell/app.rc b/plugins/rs-shell/app.rcnew file mode 100644index 0000000..0a9daf1--- /dev/null+++ b/plugins/rs-shell/app.rc@@ -0,0 +1 @@+1 ICON "app.ico"diff --git a/plugins/rs-shell/build.rs b/plugins/rs-shell/build.rsnew file mode 100644index 0000000..5b34b48--- /dev/null+++ b/plugins/rs-shell/build.rs@@ -0,0 +1,5 @@+fn main() {+ println!("cargo:rerun-if-changed=app.rc");+ println!("cargo:rerun-if-changed=app.ico");+ embed_resource::compile("app.rc", embed_resource::NONE).manifest_optional().unwrap(); // icon only+}diff --git a/plugins/rust-explorer/src/main.rs b/plugins/rust-explorer/src/main.rsindex da24e87..ea7f2be 100644--- a/plugins/rust-explorer/src/main.rs+++ b/plugins/rust-explorer/src/main.rs@@ -1240,14 +1240,14 @@ fn main() {let bg = if desktop { GetStockObject(BLACK_BRUSH) as _ } else { windows_sys::Win32::Graphics::Gdi::CreateSolidBrush(ui::pal().bg) };RegisterClassW(&WNDCLASSW { lpfnWndProc: Some(ui::proc), hInstance: inst, lpszClassName: w("RxChrome").as_ptr(), hCursor: LoadCursorW(0 as _, IDC_ARROW), ..std::mem::zeroed() });RegisterClassW(&WNDCLASSW { lpfnWndProc: Some(ui::nav_proc), hInstance: inst, lpszClassName: w("RxNav").as_ptr(), hCursor: LoadCursorW(0 as _, IDC_ARROW), ..std::mem::zeroed() });- RegisterClassW(&WNDCLASSW { lpfnWndProc: Some(proc), hInstance: inst, lpszClassName: cls.as_ptr(), hCursor: LoadCursorW(0 as _, IDC_ARROW), hbrBackground: bg, ..std::mem::zeroed() });+ RegisterClassW(&WNDCLASSW { lpfnWndProc: Some(proc), hInstance: inst, lpszClassName: cls.as_ptr(), hCursor: LoadCursorW(0 as _, IDC_ARROW), hIcon: LoadIconW(inst, 1 as _), hbrBackground: bg, ..std::mem::zeroed() });if desktop {DESKTOP.store(true, Relaxed);// the whole screen: it paints the wallpaper too; the icon list sits above the bar (desk_top / desk_bottom)// class "Progman" like explorer's desktop, so Wallpaper Engine & co. find it; title "rs-desktop" tells it apart// from explorer's ("Program Manager") for rs-shelllet pm = w("Progman");- RegisterClassW(&WNDCLASSW { lpfnWndProc: Some(proc), hInstance: inst, lpszClassName: pm.as_ptr(), hCursor: LoadCursorW(0 as _, IDC_ARROW), hbrBackground: bg, ..std::mem::zeroed() });+ RegisterClassW(&WNDCLASSW { lpfnWndProc: Some(proc), hInstance: inst, lpszClassName: pm.as_ptr(), hCursor: LoadCursorW(0 as _, IDC_ARROW), hIcon: LoadIconW(inst, 1 as _), hbrBackground: bg, ..std::mem::zeroed() });RegisterClassW(&WNDCLASSW { lpfnWndProc: Some(desk::workerw_proc), hInstance: inst, lpszClassName: w("WorkerW").as_ptr(), ..std::mem::zeroed() });RegisterClassW(&WNDCLASSW { lpfnWndProc: Some(DefWindowProcW), hInstance: inst, lpszClassName: w("SHELLDLL_DefView").as_ptr(), ..std::mem::zeroed() });let d = CreateWindowExW(WS_EX_TOOLWINDOW, pm.as_ptr(), w("rs-desktop").as_ptr(), WS_POPUP, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), 0 as _, 0 as _, inst, ptr::null());diff --git a/plugins/rust-search/Cargo.lock b/plugins/rust-search/Cargo.lockindex ab34139..bd5ba7f 100644--- a/plugins/rust-search/Cargo.lock+++ b/plugins/rust-search/Cargo.lock@@ -8,6 +8,64 @@ version = "2.13.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"+[[package]]+name = "cc"+version = "1.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45"+dependencies = [+ "find-msvc-tools",+ "shlex",+]++[[package]]+name = "cfg-if"+version = "1.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"++[[package]]+name = "embed-resource"+version = "3.0.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6168487b5e7eb2673e6efe1200b1848016e436a6ca0b8031bf04bd9d493a249f"+dependencies = [+ "cc",+ "memchr",+ "rustc_version",+ "toml",+ "vswhom",+ "winreg",+]++[[package]]+name = "equivalent"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"++[[package]]+name = "find-msvc-tools"+version = "0.1.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"++[[package]]+name = "hashbrown"+version = "0.17.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"++[[package]]+name = "indexmap"+version = "2.14.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"+dependencies = [+ "equivalent",+ "hashbrown",+]+[[package]]name = "libc"version = "0.2.191"@@ -70,11 +128,62 @@ dependencies = [name = "rs"version = "0.1.0"dependencies = [+ "embed-resource","sysinfo","windows-sys","winrust-common",]+[[package]]+name = "rustc_version"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"+dependencies = [+ "semver",+]++[[package]]+name = "semver"+version = "1.0.28"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"++[[package]]+name = "serde_core"+version = "1.0.229"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"+dependencies = [+ "serde_derive",+]++[[package]]+name = "serde_derive"+version = "1.0.229"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 3.0.10",+]++[[package]]+name = "serde_spanned"+version = "1.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782"+dependencies = [+ "serde_core",+]++[[package]]+name = "shlex"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"+[[package]]name = "syn"version = "2.0.119"@@ -86,6 +195,17 @@ dependencies = ["unicode-ident",]+[[package]]+name = "syn"+version = "3.0.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]+[[package]]name = "sysinfo"version = "0.40.3"@@ -100,12 +220,71 @@ dependencies = ["windows",]+[[package]]+name = "toml"+version = "1.2.1+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7"+dependencies = [+ "indexmap",+ "serde_core",+ "serde_spanned",+ "toml_datetime",+ "toml_parser",+ "toml_writer",+ "winnow",+]++[[package]]+name = "toml_datetime"+version = "1.1.3+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49"+dependencies = [+ "serde_core",+]++[[package]]+name = "toml_parser"+version = "1.1.5+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"+dependencies = [+ "winnow",+]++[[package]]+name = "toml_writer"+version = "1.2.0+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"+[[package]]name = "unicode-ident"version = "1.0.27"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"+[[package]]+name = "vswhom"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"+dependencies = [+ "libc",+ "vswhom-sys",+]++[[package]]+name = "vswhom-sys"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"+dependencies = [+ "cc",+ "libc",+]+[[package]]name = "winapi"version = "0.3.9"@@ -181,7 +360,7 @@ checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"dependencies = ["proc-macro2","quote",- "syn",+ "syn 2.0.119",][[package]]@@ -192,7 +371,7 @@ checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"dependencies = ["proc-macro2","quote",- "syn",+ "syn 2.0.119",][[package]]@@ -247,6 +426,22 @@ dependencies = ["windows-link",]+[[package]]+name = "winnow"+version = "1.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef"++[[package]]+name = "winreg"+version = "0.56.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10"+dependencies = [+ "cfg-if",+ "windows-sys",+]+[[package]]name = "winrust-common"version = "0.1.0"diff --git a/plugins/rust-search/Cargo.toml b/plugins/rust-search/Cargo.tomlindex 03768f1..b24854b 100644--- a/plugins/rust-search/Cargo.toml+++ b/plugins/rust-search/Cargo.toml@@ -8,3 +8,6 @@ license = "MIT OR Apache-2.0"winrust-common = { path = "../../common" }sysinfo = { version = "0.40.3", default-features = false, features = ["system"] }windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_Graphics_GdiPlus", "Win32_Security", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_Console", "Win32_System_IO", "Win32_System_Ioctl", "Win32_System_LibraryLoader", "Win32_System_Pipes", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }++[build-dependencies]+embed-resource = "3"diff --git a/plugins/rust-search/app.ico b/plugins/rust-search/app.iconew file mode 100644index 0000000..60778afBinary files /dev/null and b/plugins/rust-search/app.ico differdiff --git a/plugins/rust-search/app.rc b/plugins/rust-search/app.rcnew file mode 100644index 0000000..0a9daf1--- /dev/null+++ b/plugins/rust-search/app.rc@@ -0,0 +1 @@+1 ICON "app.ico"diff --git a/plugins/rust-search/build.rs b/plugins/rust-search/build.rsnew file mode 100644index 0000000..5b34b48--- /dev/null+++ b/plugins/rust-search/build.rs@@ -0,0 +1,5 @@+fn main() {+ println!("cargo:rerun-if-changed=app.rc");+ println!("cargo:rerun-if-changed=app.ico");+ embed_resource::compile("app.rc", embed_resource::NONE).manifest_optional().unwrap(); // icon only+}diff --git a/plugins/topbar/src/main.rs b/plugins/topbar/src/main.rsindex 370137d..fa4e7bf 100644--- a/plugins/topbar/src/main.rs+++ b/plugins/topbar/src/main.rs@@ -1011,6 +1011,13 @@ unsafe fn load_pins() {let icon = lnk_icon(&lnk, &target);PINS.with_borrow_mut(|p| p.push(Pin { lnk, target, icon }));}+ // once: a File Explorer button for the installed file manager (the marker keeps an unpinned one gone)+ let marker = appdata_file("topbar-explorer-pin.txt");+ let rx = std::env::var_os("ProgramFiles").map(|pf| PathBuf::from(pf).join(r"rust-explorer\rust-explorer.exe"));+ if let Some(rx) = rx.filter(|rx| rx.is_file() && !marker.exists()) {+ pin_exe(&rx.to_string_lossy());+ let _ = std::fs::write(marker, "1");+ }}fn refresh_buttons() {