From e9f8b03cd7c38b72d372c554df2f16f2bc5adaa1 Mon Sep 17 00:00:00 2001 From: willifan Date: Wed, 15 Jan 2025 18:07:16 +0100 Subject: [PATCH 1/2] made ewwbar actually independand of host filesystem --- src/main.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 194bb06..561feb5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,6 +19,15 @@ fn main() -> Result<(), Box> { // Set `RUST_LOG=debug` to see extra debug information. env_logger::init(); + let exe_path = std::env::current_exe()? + .parent() + .unwrap() + .to_str() + .unwrap() + .to_owned(); + let config_path = exe_path + "/eww"; + println!("Path: {}", config_path); + // Try to connect to the Wayland server. let conn = Connection::connect_to_env()?; @@ -72,7 +81,7 @@ fn main() -> Result<(), Box> { "--arg", "height=30", "--config", - CONFIG_DIR, + &config_path, ]) .spawn() .expect("failed to execute process"); From b500fa26a1cfd34a9fc5cf4c79950024a2811214 Mon Sep 17 00:00:00 2001 From: willifan Date: Wed, 15 Jan 2025 18:08:15 +0100 Subject: [PATCH 2/2] bump version to 0.1.2 --- Cargo.toml | 2 +- default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 79dacfe..7e9dac9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ewwbar" -version = "0.1.0" +version = "0.1.2" edition = "2021" [dependencies] diff --git a/default.nix b/default.nix index d01b345..38e69f1 100644 --- a/default.nix +++ b/default.nix @@ -2,7 +2,7 @@ pkgs.rustPlatform.buildRustPackage { pname = "ewwbar"; - version = "1.0.0"; + version = "0.1.2"; src = builtins.path { path = ./.; name = "ewwbar"; }; @@ -30,6 +30,6 @@ pkgs.rustPlatform.buildRustPackage { license = licenses.gpl3; platforms = platforms.unix; mainProgram = "ewwbar"; - }; + }; }