Compare commits

...

2 commits
v0.1.1 ... main

Author SHA1 Message Date
willifan
b500fa26a1 bump version to 0.1.2 2025-01-15 18:08:15 +01:00
willifan
e9f8b03cd7 made ewwbar actually independand of host filesystem 2025-01-15 18:07:16 +01:00
3 changed files with 13 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "ewwbar" name = "ewwbar"
version = "0.1.0" version = "0.1.2"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View file

@ -2,7 +2,7 @@
pkgs.rustPlatform.buildRustPackage { pkgs.rustPlatform.buildRustPackage {
pname = "ewwbar"; pname = "ewwbar";
version = "1.0.0"; version = "0.1.2";
src = builtins.path { path = ./.; name = "ewwbar"; }; src = builtins.path { path = ./.; name = "ewwbar"; };

View file

@ -19,6 +19,15 @@ fn main() -> Result<(), Box<dyn Error>> {
// Set `RUST_LOG=debug` to see extra debug information. // Set `RUST_LOG=debug` to see extra debug information.
env_logger::init(); 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. // Try to connect to the Wayland server.
let conn = Connection::connect_to_env()?; let conn = Connection::connect_to_env()?;
@ -72,7 +81,7 @@ fn main() -> Result<(), Box<dyn Error>> {
"--arg", "--arg",
"height=30", "height=30",
"--config", "--config",
CONFIG_DIR, &config_path,
]) ])
.spawn() .spawn()
.expect("failed to execute process"); .expect("failed to execute process");