[Fix] systemd stuff fr this time

This commit is contained in:
Alois 2026-05-17 22:22:03 +02:00
commit 41deb0d6de
2 changed files with 215 additions and 181 deletions

View file

@ -149,9 +149,8 @@ pub fn get_children(path: &str) -> Vec<String> {
}
pub fn get_directory() -> String {
let exe = std::env::current_exe().unwrap_or_else(|_| PathBuf::from("."));
exe.parent()
.unwrap_or(Path::new("."))
std::env::current_dir()
.unwrap_or_else(|_| PathBuf::from("."))
.to_string_lossy()
.to_string()
}