From ec4506d9e406bbc930ec2d4f1c93e115217bacd6 Mon Sep 17 00:00:00 2001
From: elkowar <5300871+elkowar@users.noreply.github.com>
Date: Thu, 29 Jul 2021 13:03:37 +0200
Subject: [PATCH] Make daemon start on server-commands when it's not running
---
crates/eww/src/client.rs | 2 +-
crates/eww/src/error_handling_ctx.rs | 5 +-
crates/eww/src/main.rs | 112 +++++++++++++++++++--------
crates/eww/src/opts.rs | 9 ++-
crates/eww/src/server.rs | 38 ++++++---
5 files changed, 119 insertions(+), 47 deletions(-)
diff --git a/crates/eww/src/client.rs b/crates/eww/src/client.rs
index 3001357..1297196 100644
--- a/crates/eww/src/client.rs
+++ b/crates/eww/src/client.rs
@@ -24,7 +24,7 @@ pub fn handle_client_only_action(paths: &EwwPaths, action: ActionClientOnly) ->
Ok(())
}
-pub fn do_server_call(mut stream: UnixStream, action: opts::ActionWithServer) -> Result