mirror of
https://github.com/tiennm99/claude-code-usage-bubble.git
synced 2026-09-08 20:19:52 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d9c59b43b | ||
|
|
7039bf7e98 | ||
|
|
cc73c3f9b4 |
Generated
+1
-1
@@ -59,7 +59,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "claude-code-usage-bubble"
|
name = "claude-code-usage-bubble"
|
||||||
version = "0.3.9"
|
version = "0.3.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dirs",
|
"dirs",
|
||||||
"embed-resource",
|
"embed-resource",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "claude-code-usage-bubble"
|
name = "claude-code-usage-bubble"
|
||||||
version = "0.3.9"
|
version = "0.3.11"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
description = "Floating bubble showing Claude Code and Codex usage on Windows"
|
description = "Floating bubble showing Claude Code and Codex usage on Windows"
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ use windows::Win32::System::Threading::{
|
|||||||
/// so no zombie wait is required.
|
/// so no zombie wait is required.
|
||||||
pub fn spawn_detached(exe: &Path, args: &[OsString]) -> io::Result<()> {
|
pub fn spawn_detached(exe: &Path, args: &[OsString]) -> io::Result<()> {
|
||||||
let mut cmdline = build_command_line(exe, args);
|
let mut cmdline = build_command_line(exe, args);
|
||||||
|
let exe_w: Vec<u16> = exe.as_os_str().encode_wide().chain(Some(0)).collect();
|
||||||
|
|
||||||
let si = STARTUPINFOW {
|
let si = STARTUPINFOW {
|
||||||
cb: std::mem::size_of::<STARTUPINFOW>() as u32,
|
cb: std::mem::size_of::<STARTUPINFOW>() as u32,
|
||||||
@@ -32,7 +33,7 @@ pub fn spawn_detached(exe: &Path, args: &[OsString]) -> io::Result<()> {
|
|||||||
let flags = CREATE_NO_WINDOW | DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP;
|
let flags = CREATE_NO_WINDOW | DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP;
|
||||||
let ok = unsafe {
|
let ok = unsafe {
|
||||||
CreateProcessW(
|
CreateProcessW(
|
||||||
PCWSTR::null(),
|
PCWSTR::from_raw(exe_w.as_ptr()),
|
||||||
windows::core::PWSTR(cmdline.as_mut_ptr()),
|
windows::core::PWSTR(cmdline.as_mut_ptr()),
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
|
|||||||
Reference in New Issue
Block a user