diff --git a/Cargo.toml b/Cargo.toml index 7e9dac9..79dacfe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ewwbar" -version = "0.1.2" +version = "0.1.0" edition = "2021" [dependencies] diff --git a/default.nix b/default.nix index 38e69f1..d01b345 100644 --- a/default.nix +++ b/default.nix @@ -2,7 +2,7 @@ pkgs.rustPlatform.buildRustPackage { pname = "ewwbar"; - version = "0.1.2"; + version = "1.0.0"; src = builtins.path { path = ./.; name = "ewwbar"; }; @@ -30,6 +30,6 @@ pkgs.rustPlatform.buildRustPackage { license = licenses.gpl3; platforms = platforms.unix; mainProgram = "ewwbar"; - }; + }; } diff --git a/src/main.rs b/src/main.rs index 561feb5..194bb06 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,15 +19,6 @@ 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()?; @@ -81,7 +72,7 @@ fn main() -> Result<(), Box> { "--arg", "height=30", "--config", - &config_path, + CONFIG_DIR, ]) .spawn() .expect("failed to execute process");