From 3707734f0abce0736c43eb08c192827d1a04d5ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=8F=E7=99=BD?= <364772080@qq.com> Date: Tue, 18 Jun 2024 03:02:09 +0800 Subject: [PATCH] windows: Fix executable display name (#13091) Closes #12907 **Note:** To actually take effect, delete the registered key of `Zed` in `HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`, for example, delete this: ![Screenshot 2024-06-15 180939](https://github.com/zed-industries/zed/assets/14981363/8da94188-a869-48bb-9ecf-18a0a2cd3061) ### Before 1. In Taskmanager ![Screenshot 2024-06-15 175146](https://github.com/zed-industries/zed/assets/14981363/bb58a136-9f28-4f7f-9079-d83bc8b27580) 2. Right click taskbar ![Screenshot 2024-06-15 175211](https://github.com/zed-industries/zed/assets/14981363/113797c5-fa38-494e-a939-7a05adfa6d9e) ### After ![Screenshot 2024-06-15 174800](https://github.com/zed-industries/zed/assets/14981363/a1e9c1f5-da05-4a47-a97f-bd297f22ae37) ![Screenshot 2024-06-15 175847](https://github.com/zed-industries/zed/assets/14981363/692ed3ac-6ad0-4804-894e-1fae375ebd3d) Release Notes: - N/A --- crates/zed/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/zed/build.rs b/crates/zed/build.rs index 4a8f2c81fd..c0d5c41875 100644 --- a/crates/zed/build.rs +++ b/crates/zed/build.rs @@ -57,6 +57,8 @@ fn main() { let mut res = winresource::WindowsResource::new(); res.set_icon(icon.to_str().unwrap()); + res.set("FileDescription", "Zed"); + res.set("ProductName", "Zed"); if let Err(e) = res.compile() { eprintln!("{}", e);