mirror of
https://gitlab.com/hyask/swaysome.git
synced 2025-12-10 07:44:43 +01:00
fix: Path::is_file can return 'false' sometimes for reasons™
This commit is contained in:
parent
d6eb1b62a6
commit
f9a0c22e9b
1 changed files with 3 additions and 5 deletions
|
|
@ -59,11 +59,9 @@ impl SwaySome {
|
|||
};
|
||||
|
||||
let socket = Path::new(&socket_path);
|
||||
if socket.is_file() {
|
||||
match SwaySome::new_from_socket(socket) {
|
||||
Ok(swaysome) => return swaysome,
|
||||
Err(e) => eprintln!("Error with value found in ${}: {}", socket_var, e),
|
||||
}
|
||||
match SwaySome::new_from_socket(socket) {
|
||||
Ok(swaysome) => return swaysome,
|
||||
Err(e) => eprintln!("Error with value found in ${}: {}", socket_var, e),
|
||||
}
|
||||
}
|
||||
panic!("couldn't find any i3/sway socket")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue