Skip to content

Commit

Permalink
fix cli start command not properly spawning and starting winbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Sulaxan committed May 3, 2024
1 parent f7fc7f5 commit 3bb938e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ displayed.
`winbar` is divided into two components: the CLI (`winbarc`) and the actual status bar app itself
(`winbar`). The CLI can be used to control `winbar`.

`winbar` (the app) runs a TCP server for clients to connect to (in this case, just `winbarc`). The
protocol is a simple JSON based request-response protocol. If you're curious/want to make your own
client, see [protocol.rs](./winbar/src/protocol.rs).
`winbar` (the app) runs a TCP server for clients to connect to (in this case, just `winbarc`). It
uses a simple JSON-based request-response protocol. If you're curious/want to make your own client,
see [protocol.rs](./winbar/src/protocol.rs).

## Components

Expand Down
7 changes: 4 additions & 3 deletions winbarc/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{
process::Command,
process::{Command, Stdio},
sync::{
atomic::{AtomicBool, Ordering},
Arc,
Expand Down Expand Up @@ -63,8 +63,9 @@ async fn main() {
match Command::new("winbar.exe")
.args(["--config-path", path])
.args(["--port", &port.to_string()])
.arg("&")
.output()
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
{
Ok(_) => {
log!("Started winbar!");
Expand Down

0 comments on commit 3bb938e

Please sign in to comment.