made ewwbar actually independand of host filesystem
This commit is contained in:
		
							parent
							
								
									bdd0854f2b
								
							
						
					
					
						commit
						e9f8b03cd7
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		
							
								
								
									
										11
									
								
								src/main.rs
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.rs
									
										
									
									
									
								
							|  | @ -19,6 +19,15 @@ fn main() -> Result<(), Box<dyn Error>> { | |||
|     // 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<dyn Error>> { | |||
|                     "--arg", | ||||
|                     "height=30", | ||||
|                     "--config", | ||||
|                     CONFIG_DIR, | ||||
|                     &config_path, | ||||
|                 ]) | ||||
|                 .spawn() | ||||
|                 .expect("failed to execute process"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue